GLOBAL SITE AUSTRALIAN SITE

Can Edison Detect Colors Besides Black/White? | EdPy Programming | Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic3
Can Edison Detect Colors Besides Black/White?
May 16, 2018
4:40 am
Megan
New Member
Members
Forum Posts: 1
Member Since:
May 16, 2018
sp_UserOfflineSmall Offline

Hello,

My students are supposed to complete a rescue bot challenge where the Edisons follow a black line and identify people to rescue. The people are supposed to be represented with green dots. I can’t seem to figure out how to get Edison to indicate that it has detected a color besides black and white. Is this even possible? How?

Thanks!

May 16, 2018
11:55 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOnlineSmall Online

Hi 

In EdPy you can read the exact value that has been received from the line sensor.

Different colours will reflect different amounts of light giving different readings on the line sensor.

It is possible to determine how much light is being detected by using a program similar to:

http://www.edpyapp.com/share/Fy8zD

Simply run the code, place Edison on the colour and read which light is active

then change the value in the if statement to get closer to the value, and repeat until you get closer to the value.

This will work for a given setup but the amount of reflected light will change if you change the location, the mat, the Edison or make a big change to the ambient light

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead

Country

Pin It on Pinterest

Share This