Forum Replies Created
-
AuthorPosts
-
Anders SøborgKeymasterHi
Thanks for trying MonoBrick. I think that you might be mixing MonoBrick firmware with MonoBrick communication library.
- MonoBrick communication library is a library written in C# that let’s you remote control the EV3 using the standard firmware
- MonoBrick firmware is a firmware replacement that let’s you execute .Net/C# programs on the EV3 brick
To remote control a EV3 running the MonoBrick firmware you can not use the MonoBrick communication library as it only works with the standard firmware. To establish a connection from a PC to the EV3 running the MonoBrick firmware you simply need to have a program running on the EV3 that accepts a TCP/IP connection and then have the PC establish a connection. Use google to find one of the many tutorial on how to do this in C#…
Anders
Anders SøborgKeymasterHi thanks for trying the Monobrick firmware. To remote control the EV3 over a WiFi connection you do not need to use the MonoBrick communication library – in fact if you read closely here you will see that the communication library only works with the standard firmware. To establish a connection from a PC to the EV3 running the MonoBrick firmware you simply need to have a program running on the EV3 that accepts a TCP/IP connection and then have the PC establish a connection. Use google to find one of the many tutorial on how to do this in C#…
Anders
Anders SøborgKeymasterHi Stefan
Get the latest version of GIT and use the speed and step profile… then there should be no problems. Under normal operations MoveTo and Move should work however. The PID controller there can be found in the source has not been apllied to MoveTo and Move yet, but in the meantime you can use the PID class/controller if you like…
Anders
Anders SøborgKeymasterHi
Just for info I posted a question on this on facebook. You might want to follow the discussion…
Anders
Anders SøborgKeymasterHi
I noticed that native firmware starts in this dimmed state, then when it switchs to the Menu it appears with no dimming issue. Is this normal with your Bricks Native Firmware?
No – again I have never seen this. Anyone else has seen this behaviour?
Anders
Anders SøborgKeymasterHi
I am not sure I understand… when you run the motor example the display is ok?
Anders
Anders SøborgKeymasterI am looking into this… I havn’t seen this before. What happens when you write to the LCD from your own program? What happens when you boot.
Does it start off OK (with the text that says: “starting”)?
Anders
Anders SøborgKeymasterHi
I don’t have a Mindsensor multiplexer – but you might be able to write add support… have a look at I2C class and the HT tilt sensor for an example on how to use the I2C class.
I hope this will help you to get started… please let me know how it goes
Anders
Anders SøborgKeymasterHi Simo
I have never seen or heard of this before… could you please provide some photos. What happens when you run a program?
Anders
Anders SøborgKeymasterIs this the case for all downloads? What browser and OS are you using?
Anders
Anders SøborgKeymasterHi
When you use the setpower the driver is not enabled – which of cource it should… so this is a bug.
You can fix it your self. Go to motor.cs and locate:
/// <summary> /// Sets the power of the motor. /// </summary> /// <param name="power">Power to use.</param> /// <param name="reply">If set to <c>true</c> reply from brick will be send.</param> public void SetPower(byte power, bool reply){ output.SetPower(power, reply); }
And replace this with
/// <summary> /// Sets the power of the motor. /// </summary> /// <param name="power">Power to use.</param> /// <param name="reply">If set to <c>true</c> reply from brick will be send.</param> public void SetPower(byte power, bool reply){ output.SetPower(power, reply); output.Start(false); }
once this is done you should be able to use the setpower function like this
using System; using MonoBrick.EV3; using System.Threading; using System.Diagnostics; public static class Program{ static void Main(string[] args) { var ev3 = new Brick<Sensor,Sensor,Sensor,Sensor>("usb"); ev3.Connection.Open(); ev3.MotorA.SetPower(80); System.Threading.Thread.Sleep(5000); ev3.MotorA.SetPower(0); ev3.Connection.Close(); } }
Thanks
Anders
Anders SøborgKeymasterHi
What school are you working at? And what are you teaching?Sorry for the late reply….
Using the MonoBrick communication library for a PID Controller is not recommended since there is no way to guarantee that your sample rate is constant – so this will give unexpected behaviour. You should run the PID controller directly on the brick itself. You could use the MonoBrick firmware 🙂
Anders
Anders SøborgKeymasterGreat that you where able to solve this… Welcome to the MonoBrick community
Anders SøborgKeymasterHi
I’m using your firmware and it seems that there are no UDP broadcasts.
It is correct the MonoBrick firmware does not support UDP broadcast. But you should be aware that the MonoBrick communication library only support the standard firmware.
Is there an easy way to connect with a brick running the monobrick firmware?
Simpley have a program running on the EV3 that listens and accepts a TCP/IP connection. Then from the PC connect to the EV3 using a TCP/IP socket. Search the web there are dozens of examples on how to do this in c#
Anders
- This reply was modified 10 years, 9 months ago by Anders Søborg.
Anders SøborgKeymasterHi
I think that you might have mixed using “MonoBrick communication library to connect to the EV3 over a WiFi connection” with “Connecting the EV3 to a WiFi network”.
What is it you want to do?
Anders
-
AuthorPosts
Follow