There is a railroad crossing near my house and my 2yr old likes to watch the gate arm go up and down to let the train/traffic cross. As much as I’d love to stay with him on that crossing all day long 🙂 I decided it would be much easier to build a smaller version of the gate arm at home for him to play with.
ESP8266 is a family of inexpensive full TCP/IP stack Wi-Fi chips and microcontrollers that can be programmed using Arduino IDE. It can work as a standalone microcontroller or interfaced with an Arduino microcontroller via AT commands. I decided to try it out by itself on a simple relay project with an ESP-01 module. The program is a simple web server that can be used by a client to turn a power socket on and off using a 5V relay module.
The goal of this project was to create a robot that would be able to reach a goal geolocation from any starting position while avoiding obstacles. Performing this operation with multiple goal locations, the robot is able to travel a predefined path. Robot operation is based on two modes: Cruise and Wall follow (for obstacle avoidance). Cruise mode uses readings from GPS and Compass while the wall follow mode uses distance information acquired from 5 ultrasonic sensors as well as compass readings. The main operation loop runs at 20Hz.
Face tracking turret uses OpenCV framework for face recognition, the project is written in Python. The face center coordinate is sent via serial interface to Arduino. The coordinate is translated into horizontal and vertical angles that are used to position the servos on the pan/tilt mount.
Arduino Uno R3 microcontroller board is used for this project. MPU6050, an 6DOF IMU (with accelerometer and gyroscope) is used to get the angle and L298N motor controller board controls the 2 motors.
The motors are 12V 122rpm and the wheels are 8cm in diameter.
Robot size is 17x10x30 cm. Three plexiglas plates are used to hold the frame and parts. Standard PID controller is used to control the robot. To tune the PID controller parameters 3 potentiometers are used.
I’ve created a 2WD autonomous Arduino Robot. Remote control is supported via bluetooth and Android device. Continue reading Ernesto – Arduino 2WD Robot + Android RC
More info on how to interface Arduino and LCD: http://arduino.cc/en/Tutorial/LiquidCrystal
MPU6050 gyroscope and a accelerometer sensor with Arduino and servo. In this example I’m using raw accelerometer data.
Recently I found myself a new hobby. I’ve ordered an Arduino Uno and some additional hardware to play with. I wanted to start off with some easy stuff – Arduino Knob.
int servoPin = 9;
int potpin = 0;
int val = analogRead(potpin);
val = map(val, 0, 1023, 0, 179);
if (val != prevVal)
prevVal = val;