GLOBAL SITE AUSTRALIAN SITE

turn lights on when dark | EdBlocks 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
turn lights on when dark
November 4, 2017
11:30 pm
Ioannis
New Member
Members
Forum Posts: 1
Member Since:
November 4, 2017
sp_UserOfflineSmall Offline

hello there,

i want to implement this project with edblocks

In few words edison is a train following lines and he enters a tunel. Can i switch on the lights?

November 20, 2017
10:42 am
Ben
Admin
Forum Posts: 165
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

This project was designed to be programmed in EdWare.

It might still be possible in EdBlocks but it will be more complicated.

A few tips:

You cant use EdBlocks line tracking blocks

Line tracking should be done with event blocks

the main program contains a loop and looks for changes in light level

you will need to place blocks over one of Edison's line sensors for this program to work

November 22, 2017
8:29 pm
Avatar
gloriacoding
Member
Members
Forum Posts: 13
Member Since:
November 22, 2017
sp_UserOfflineSmall Offline

Ioannis said
hello there,

i want to implement this project with edblocks

In few words edison is a train following lines and he enters a tunel. Can i switch on the lights?  

Nice and challenging project to try in my class with the older kids! Thanks for sharing! I'm a newbie with Robotics and Meet Edison and I'm eager to learn all that I can. So far I've sorted the light sensing ON/OFF loop and I'm still working on combining it with the line tracking. Is there a way I can share the code here in the forum? 

Thanks again!

November 22, 2017
11:15 pm
Avatar
gloriacoding
Member
Members
Forum Posts: 13
Member Since:
November 22, 2017
sp_UserOfflineSmall Offline

Hi! I'm struggling with the SENSE LIGHT block and the loop. Can anyone help me?

I've got a forever loop that keeps Edison driving and another loop inside, TEST PASSES LIGHT_LEVEL < 20, that leads to an IF LIGHT_LEVEL <20 turn leds on, if not off, and then I reset the light_level to 0. What am I doing wrong, any tips? I'm sure it is easier than I think but I can't see it 😉

Thank you!

November 27, 2018
5:37 am
Avatar
lubos.racansky
New Member
Members
Forum Posts: 2
Member Since:
November 8, 2017
sp_UserOfflineSmall Offline

Image Enlarger

  • 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