Here are all of the code samples that we have created so far for the Littlebot Budget. More will be added as time passes and you guys create and submit more. Enjoy!
Walter_OS
This file contains the primary Android app control code and the Autonomous wander code.
Defaults to Direct Control from the app. The Bot will sit silent when powered on until the App is connected and sends commands
![]()
|
|
Defaults to Wander Mode. The Bot will use his ultrasonic sensor eyes to wander around the room until the app is connected and changes his mode.
![]()
|
|
Other Code Samples and Tutorials
Simple Single Step MotionThis code is a baseline for students to learn simple programming structure by creating a sequence of actions for the LittleBot. Just turning on 1 motor or the other for a time. From this they can learn if statements, loops, and start to implement sensor feedback. The video at the right shows a demo of the baseline code below without editing.
![]()
|
|
Fire SensingSetup the Littlebot to run away from Flame when a candle comes near him. Tutorial Coming Soon.
![]()
This same code can also be used with the Arduino Sound Sensor
|
|
Hand FollowThe Littlebot will maintain a fixed distance away from your hand. Tutorial Coming Soon.
Code Using Simple if Statements
![]()
Code Using a Basic Proportional Controller
![]()
|
|
Light FollowUse two light sensors and get the LittleBot to follow a flashlight beam. Tutorial Coming Soon.
![]()
|
|
Speech ExamplesSeveral examples of using the buzzer to make the LittleBot Speak
![]()
![]()
|
|
React to Tilt SensorLittleBot will beep when bumped. Tutorial coming soon.
![]()
|
|
Line FollowUse the Line Following Sensors to follow a black line on a white surface. Tutorial coming soon.
![]()
![]()
|
|
Wall Follow
Use an IR Proximity Sensor to follow a wall.
![]()
|
|