This repository contains the source code for the HSRobot projects.
HSRobot is a programming platfom to help learn programming in a unique way. I believe, most conventional programming is taught backwards. Pick up any programming book and they bore you to death taking about variables, loops, control structures, functions and a ton of stuff that's hard to understand, expecially if you are comming from a non-programming background.
HSRobot takes a different approach. The lessons learned while running a local Girls Who Code Club have been used to build a programming platform that is fun, engaging and easy to learn.
Raspberry Pi is a powerful and cheap computer that comes with everything you need to learn programming. The ability to interface with hardware and interact with it via programming makes it easier to understand programming concepts.
The key components used in HSRobot are:
The GPIO Pins used in this project are:
- Pin 18 - Control Left Motors (High to run motors; Low to stop motors)
- Pin 14 and 15 - Control the direction of motors
- Pin 25 - Control Right Motors (High to run motors; Low to stop motors)
- Pin 23 and 24 - Control the direction of motors
Action | GPIO Pin Value |
---|---|
Turn Left Motors Forward | 18 High, 14 Low, 15 High |
Turn Left Motors Backward | 18 High, 14 High, 15 Low |
Turn Right Motors Forward | 25 High, 23 Low, 24 High |
Turn Right Motors Backward | 25 High, 23 High, 24 Low |
Stop Motors | 18 Low, 14 Low, 15 Low, 25 Low, 23 Low, 24 Low |
Congratulations! HSRobot is a programmn platform and you will have endless fun learning programming.
Follow the Getting Started Guide to get started.