Anders Søborg

Forum Replies Created

Viewing 15 posts - 256 through 270 (of 411 total)
  • Author
    Posts
  • in reply to: Setting up #4123
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: Remote control Ev3 by EDIMAX EW-7811-Un #4122
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

    in reply to: Motor Control not behaving #4117
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

    in reply to: EV3 display problem #4111
    Author Image
    Anders Søborg
    Keymaster

    Hi

    Just for info I posted a question on this on facebook. You might want to follow the discussion…

    Anders

    in reply to: EV3 display problem #4110
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: EV3 display problem #4108
    Author Image
    Anders Søborg
    Keymaster

    Hi

    I am not sure I understand… when you run the motor example the display is ok?

    Anders

    in reply to: EV3 display problem #4106
    Author Image
    Anders Søborg
    Keymaster

    I 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

    in reply to: Using multiplexer nxtmmx #4105
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: EV3 display problem #4097
    Author Image
    Anders Søborg
    Keymaster

    Hi Simo

    I have never seen or heard of this before… could you please provide some photos. What happens when you run a program?

    Anders

    in reply to: 7Zip/WinRAR report broken image file #4094
    Author Image
    Anders Søborg
    Keymaster

    Is this the case for all downloads? What browser and OS are you using?

    Anders

    in reply to: Problem with SetPower #4091
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: Problem with SetPower #4089
    Author Image
    Anders Søborg
    Keymaster

    Hi
    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

    in reply to: GyroExample crashes #4088
    Author Image
    Anders Søborg
    Keymaster

    Great that you where able to solve this… Welcome to the MonoBrick community

    in reply to: Control more than one EV3 #4058
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: How to setup TCP/IP connection #4056
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

Viewing 15 posts - 256 through 270 (of 411 total)
Posted in

Make a donation