- 1. Coding skills
1. Coding skills
Robotics, and in fact modern science, is underpinned by coding.
If you are chemist, using an analytical technique such as an HPLC, you will need to load a program into it to analyse your sample.
If you are a research psychologist, well, both SAS, SPSS need you to write procedures (code) to perform statistical analysis on your data.
Coding has become easier, over time. When dealing with robots, and control systems, it is good to have some understanding about how a powerful, low level (ie fast, not too abstracted) language works.
These lessons are aimed at showing students how some of the subtleties of the C language work. They are designed to be hacked, to be played with. I encourage my students to play, run little experiments on the code, to get to understand how it all works.
In general, the instructions are
1) downlod and save the code
2) copy or open it in the arduino IDE
3) Bash it about a bit and see what happens.
4) Fill in the accompanying worksheet, because "that which is old is now new"!
- 2. Using Bluetooth to control your robots
2. Using Bluetooth to control your robots
Bluetooth and Arduino
In this section we look at how to connect bluetooth HC-06 cards ($3.50 USD each, from ebay) to your projects.
The process requires the following components:
An app on a smartphone that allows a user to direct/interact with a robot.
A client "sketch" on an Arduino Uno that can interpret commands and control the motors/drive on a robot.
The following hardware components are required to enable this to happen:
Android phone, with bluetooth
Arduino Uno board
This is summarised on this diagram:
- 3. Motors and Clackers - some interesting experiments
3. Motors and Clackers - some interesting experiments
- 4. Nanotechnology and robots.
4. Nanotechnology and robots.
- Topic 5