Auctor137

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Can the color sensor detect orange? #5053
    Author Image
    Auctor137
    Participant

    Hi Jacek,

    thanks, looking forward to use this!
    But I really don’t know what to do, I’m not a a professional programmer..

    Could you tell me how to compile the firmwarelib from the master branch and use your solution?

    I’m using Visual Studio 2012 C# with Windows 7

    • This reply was modified 10 years ago by Author ImageAuctor137.
    in reply to: Can the color sensor detect orange? #5048
    Author Image
    Auctor137
    Participant

    Hi everybody,

    I’m a litte bit confused.. the new EV3 Colorsensor is not able to read RGB ? Why would LEGO do that?
    I’ve tried this Code out of the new Tutorial from Max Mustermann, but with the EV3 Sensor it doesn’t work.
    Red 0
    Green 0
    Blue 0
    all the time.

    using System;
    using System.Threading;
    using MonoBrickFirmware.Sensors;
    using MonoBrickFirmware.Movement;
    using MonoBrickFirmware.Display;
    using MonoBrickFirmware.UserInput;
    
    namespace farbsensor
    {
        class farbsensor
        {
            static void Main(string[] args)
            {
                EV3ColorSensor farbsens = new EV3ColorSensor(SensorPort.In1);
                
                bool abfrage = true;
                string rotwert, gruenwert, blauwert;
    
                RGBColor RGBFarben = new RGBColor(0, 0, 0);
                ButtonEvents buts = new ButtonEvents();
    
                buts.EscapePressed += () => 
                { abfrage = false; };
    
                while (abfrage == true)
                {
                    rotwert = Convert.ToString(RGBFarben.Red);
                    LcdConsole.WriteLine("Rot :" + rotwert);
    
                    gruenwert = Convert.ToString(RGBFarben.Green);
                    LcdConsole.WriteLine("Gruen :" + gruenwert);
    
                    blauwert = Convert.ToString(RGBFarben.Blue);
                    LcdConsole.WriteLine("Blau :" + blauwert);
                    Thread.Sleep(2000);
                }
                LcdConsole.WriteLine("###############");
                LcdConsole.WriteLine("PROGRAMMENDE...");
                Thread.Sleep(3000);
    
            }
        }
    }
    

    #EDIT
    I forgot
    RGBFarben = farbsens.ReadRGBColor();
    infront of the “while-loop”, but farbsens does not have the function ReadRGBColor(), how can i do it?

    • This reply was modified 10 years ago by Author ImageAuctor137.
    • This reply was modified 10 years ago by Author ImageAuctor137.
    in reply to: Can the color sensor detect orange? #5047
    Author Image
    Auctor137
    Participant

    Hello Jacek,

    could you please tell me how to detect orange with your solution ?
    I’m using a EV3 Colorsensor.

    I’ve tried a bit with the code you have posted and checked the library page

    but i don’t know how to write the code properly.

    auctor

    in reply to: MonoBrick Tutorial [German] #5046
    Author Image
    Auctor137
    Participant

    Is there no option to send private messages in this forum?

    Well:

    Maybe a chapter about all these WaitHandle commands…
    you need these a lot if you work with

    motorA.SetSpeedProfile(speed, degrees accelerate, degrees hold speed, degrees brake, break at end?(true/false));

    Otherwise it won’t work fine. I’ve started a thread about that two weeks ago.

    And I need to know how to detect Orange with the EV3 Colorsensor^^

    in reply to: MonoBrick Tutorial [German] #5044
    Author Image
    Auctor137
    Participant

    Awesome
    I’m from germany and that’s really helpful – really appreciate that!

    already printed it ;D

    in reply to: Using the NXT Color Sensor with EV3 #5031
    Author Image
    Auctor137
    Participant

    Yeah I know, but i need to read the colors. I’ve used the EV3 Colorsensor now and it works fine.

    in reply to: Using the NXT Color Sensor with EV3 #5029
    Author Image
    Auctor137
    Participant

    I’ve used the NXT LIGHTsensor, not the COLORsensor.
    Oh man.

    in reply to: Engine control – move 45°, wait, move 45°, wait #5025
    Author Image
    Auctor137
    Participant

    Thanks a lot Anders, your code works great.
    I’ve modified it a bit, to do only 8 turns (=360degrees).

    and I’ve started another Thread about the nxt color sensor.

Viewing 8 posts - 1 through 8 (of 8 total)
Posted in

Make a donation