March 20, 2019
Love my Edison robot, this is the first program I wrote to get use to the actions of "Eddy"
For other users, here is a quick overview of what the code blocks do
so DEFAULT MODE is line tracker.
Using a small and cheap remote as in PIC, the one with #0-8 printed on the bottom buttons.
I barcoded in remote code 0 to button 0, and so on....till I get to remote code 7, I put this on remote button #8, you will see why later
Reading the START code blocks you see from the top, it has a small startup sequence of beeps and flashes. It then scans the IF statements for any remote control codes.
below is the REMOTE CODE LIST actions:
Remote Button #0= Inside bounds mode for ~30sec (have added a random element to reduce getting stuck)
1= FULL STOP and wait 3sec, (you get time to push another remote code that is started after 3 sec wait)
2= ZAP forward at speed
3= Police Siren
4= Spin left (90 deg)
5= Spin 180 deg
6 =Spin right (90 deg)
8= ZAP backwards at speed
I also used interupt's for checking any obstacle in FRONT, to the LEFT or RIGHT, I added visual feedback so you know when this happens.
hope others find this CODE fun to use!
**Please note, bright light from outside can affect line tracker mode, if line tracker just goes in circles, decrease outside light and increase overhead room light**