PROJECTS 2
[FORTHMOBILE ATLE 21]
The Forthmobile is intended to be a platform for developing Forth-based autonomous vehicles.
Here is what you need
Demo Video
[Project 22 ULTRASOUND SENSOR]
The ultrasound distance sensor , by Atle Bergstrom.
Testing the Forthmobile Main Board
with IC2 bus by Atle Ramsli.
Testing my KiCad design, part 1. It works, and my newbie heart jumps with joy.
13 output pinMode
13 1 digitalwrite
14 output pinMode
14 1 digitalwrite
18 output pinMode
18 1 digitalwrite
: testLed
13 1 digitalwrite
200 ms
14 1 digitalwrite
200 ms
18 1 digitalwrite
200 ms
13 0 digitalwrite
200 ms
14 0 digitalwrite
200 ms
18 0 digitalwrite
200 ms
;
: tst 100 0 do testLED loop ;
Elevator challenge
In the elevator: One button for each floor
On each floor: One UP button and one DOWN button
If the elevator is on its way up and it encounters a floor where only the DOWN button is pressed, it will not stop there.
Conversely on the way down.
Here is the code: