Difference between revisions of "Arduino and Cake"

From Makespace
Jump to: navigation, search
m (Sessions)
(Projects)
Line 106: Line 106:
  
 
--[[User:DannyG|DannyG]] 15:12, 2 August 2013 (BST)
 
--[[User:DannyG|DannyG]] 15:12, 2 August 2013 (BST)
 +
 +
=== Self-levelling camera gimbal ===
 +
 +
One popular use of quadcopters is aerial photography/videography, but for this you ideally need a stabilised camera mounting.  It's relatively easy to fabricate a two-axis gimbal for a small camera like a GoPro, driven by servos, which can hold itself level using readings from a gyro/accelerometer board.
 +
 +
[[User:Martin de S|Martin de S]] 12:25, 13 August 2013 (BST)
 +
 +
=== Barn door sky tracker ===
 +
* Goal: take long exposure photos of the sky.
 +
* Problem: the sky rotates over the course of a long exposure.
 +
* Solution: make a motorised mount which rotates your camera at the same rate.
 +
 +
I'm aiming to build a simple "barn door" mount (http://en.wikipedia.org/wiki/Barn_door_tracker) to enable me to take long exposure sky photos. At its simplest this is two hinged pieces of wood connected by a threaded rod which you turn slowly to increase the angle at the hinge.  I'd like to drive this with a stepper motor so it can be left running, and ideally let the Arduino do some of the maths to compensate for the changing geometry of the mount.
 +
 +
[[User:Martin de S|Martin de S]] 12:25, 13 August 2013 (BST)

Revision as of 11:25, 13 August 2013

Cake!
Arduino!
Happy Hacking!
The temperature sensor, it lives!
Step step step...

Arduino and Cake

This is a page of information for the (hopefully) regular 'Arduino and Cake' event we run at Makespace. This is an evening where we get together in the space to learn and hack on projects involving the Arduino and similar microcontrollers. As the name suggests, there's also cake!

If you're a complete beginner to microcontrollers (tiny, very cheap computers without an operating system, files, display, keyboard...) this is a great opportunity to come and play with them. Experts also very welcome, in fact we need you to help the new people! Possible things you can do with an Arduino (a particularly easy to use microcontroller board) range from simple flashing lights up to acting as the brains of an autonomous flying robot, managing your hydroponic gardening project or tweeting the current temperature of your hot water tank. This get-together is intended to help those of us for whom imagination exceeds expertise (that is to say, pretty much everyone I know), let's build cool things together :)

Sessions

The plan is to have this as regularly as possible, varying the day around in case people can't make a particular day of the week.

  1. Our first session, with all levels of experience from complete novices to expert embedded programmers. Everyone paired up, with beginners and experts working together; judging from the happy buzz of making noises (both the noise of making, and the making of noises - we had buzzers!) it worked pretty well. The meetup page for the first go is on meetup here
  2. The second one was on the 8th of August; meetup event here, big copies of the photos (which are lurking on the right hand side of this very page) here :) Some of the bits for the Big Box of Breakout Boards and Bits arrived, temperature and humidity sensors and stepper motor drivers yielded to sugar driven curiosity.

The next meeting will be on Friday 16th August - sign up on meetup.com here

Helpful links

Arduino home page : www.arduino.cc
A bunch of useful little circuits to play with: Arduino Basic Connections

Big Box of Breakout Boards and Bits (BBBBB)

We've had approval to buy some bits and pieces for people to play with at this event, and generally within Makespace so I've done an eBay dive and ordered the following, these will arrive sometime over the next month or so:

  1. 80 high brightness LEDs (20 each of orange, green, blue and pink!)
  2. 4 LED Dot matrix modules with drivers
  3. 2 Eight digit seven segment displays with drivers
  4. 2 Ethernet shields for the Arduino Nano
  5. 4 LCD 20x4 character displays
  6. 8 Motion sensors (6 degrees of freedom MPU6050 based with 3 axis gyro and 3 axis accelerometer)
  7. 6 Arduino Nano v3 boards (ATMega328, mounts on a breadboard)
  8. 12 Dual H-bridge modules, used to drive regular and stepper motors
  9. 3 Temperature / Relative humidity sensor modules
  10. 2 IR correlation sensor modules (the kind where you have a beam which outputs a signal when broken, good for detecting rotation etc)
  11. 10 Small servo motors (9g plastic type)
  12. 6 Ultrasonic rangefinder modules, detect bounce from around 20cm to 3m
  13. 4 Stepper motors with driver modules, 5v supply
  14. 1 Barometric pressure sensor module
  15. 10 Playstation style joysticks, the little analogue ones with a built in pushbutton on breakout boards
  16. 10 NRF24L01 radio modules, short (~100m) range radio modules capable of transmitting packets of 3 bytes at around 2Mbits/second under ideal conditions
  17. A lot of somewhat longer jumper leads (20cm and 30cm) both male to male and male to female, the latter being particularly useful for connecting to the radio modules as they have a non-breadboard-friendly pin layout (or we can make boards with the PCB mill)

Total budget for all the above including shipping is 270GBP (you get a lot of electronics for you money when buying from the far East!)

As and when these appear at my house I'll bring them in and add them to the BBBBB - I'm planning to buy a decent size box with compartments to keep these in, both as convenient access and as a way to monitor attrition (these are cheap, but the cheapness comes with long lead times). These bits will be for use at Makespace, rather than for consumption but as long as we have enough items we can be flexible on that; I think if someone has ordered a Nano, say, there's no reason we can't lend them one of the kit ones while they wait for it to turn up.

Update - we now have the box and some of the bits, I'm marking bits which have arrived and are now in the box in this colour in the list above. At the moment the box is waiting to be documented and have the components properly marked, it'll then be left in Makespace and hopefully its contents won't evaporate too fast!

--tmo 12:55, 9 August 2013 (BST)

Projects

Got an interesting project or a project idea? Add it here.

Vehicle monitor / heating controller

I've re-wired my Land Rover, using a star topology, with a big central "ganglion" which almost all the wires run to and from. There's an extra wire coming from each connection, that will go to a board of LEDs and voltage dividers, the latter feeding into an Arduino Mega, which will monitor just about everything, and display information on a small LCD panel.

I'm also planning to make a motorized heater control system (moving flaps to direct air from an Eberspacher) and the valve motors will be driven from relays on the Arduino.

And there'll be a GPS/GSM security unit, and eventually a Linux board (probably Pandaboard) running navigation software. And later on, I hope, an electric motor to drive the extra axle I added. The Arduino Mega will route data between all these points, with its multiple hardware UARTS, as well as sending out information it converts locally from its own inputs.

I expect the software will be a main loop that polls all UARTs for incoming information, all wiring lines for changes from their previous state, all heating valve position sensors for whether they've reached the right position, all pedals for information to send to the traction motor controller when fitted, and does the associated actions (for example, NMEA sentences from the GPS get forwarded to the Linux board for navigation and are also used to display the time on the LCD, heating switches update the desired positions for flap valves).

JCGS 15:00, 2 August 2013 (BST)

Quadcopter

Because everyone loves autonomous flying robots surrounded by razor sharp rotating propellers, right?

A friend and I are working on a full self build of a quad rotor, we have the airframe, motors, props, speed controllers and an arduino with a combined gyro / accelerometer mounted. We just need to add batteries, wireless comms and software. I don't know whether I can persuade Si to come along to this meeting, he's not a member, but that's one of the things I'm playing with at the moment. I'm using the MPU6050 and PID libraries to manage the feedback between the accelerometer and the speed controllers in an attempt to get a stable hover mode, and the NRF24L01 as the radio module.

--tmo 15:12, 2 August 2013 (BST)

Bottle rocket telemetry

The family makers are making bottle rockets, I thought it'd be cool to try to make a telemetry module that would tell them how high they'd gone and render a 3d trace of the trajectory using either Processing or WebGL. The main challenge here is to get the circuitry small enough and tough enough to be carried by the rockets and then survive the return to ground level! The second issue is power, I have a LiPo battery and charger so should just be a case of a 3.3v regulator but maybe it needs a boost converter, not really my area of expertise so I'd really like some help there.

At the moment I'm interested in using an ATTiny85 (8 pin dip package MCU) as an Arduino, using the MPU6050 gyro / accelerometer and an XBee v2 radio - I'd use the NRF24 radio but I think it needs more pins than I have available on the ATTiny. Another option would be to use a rather more sophisticated Arduino pro mini, more pins means the NRF radio would be an option which is much cheaper than the XBee modules.

--tmo 15:12, 2 August 2013 (BST)

I2C plant moisture sensors

Program an ATTiny85 as an I2C slave, embedding it onto a circuit board etched to work as a capacitive moisture sensor. Use Arduino nano with ethernet shield as an I2C master to then monitor the moisture levels in my various outdoor plant pots and tweet when they're getting too dry.

--tmo 15:12, 2 August 2013 (BST)

Breadboard prototype of a 1D Pong Game

The idea is to prototype a simple 1D pong game (see YouTube) on Arduino or other microcontroller.

Features:

  • Some kind of startup animation (similar to the YouTube video)
  • A scoreboard or something similar. Based maybe on a segmented display or LCD.
  • SOUNDS! :-)
  • Perhaps some different game modes, maybe "powerups" of some kind?

Eventually I would like this to be the start of a MUCH larger version of the game (but that's for the future ;-))

--DannyG 15:12, 2 August 2013 (BST)

Self-levelling camera gimbal

One popular use of quadcopters is aerial photography/videography, but for this you ideally need a stabilised camera mounting. It's relatively easy to fabricate a two-axis gimbal for a small camera like a GoPro, driven by servos, which can hold itself level using readings from a gyro/accelerometer board.

Martin de S 12:25, 13 August 2013 (BST)

Barn door sky tracker

  • Goal: take long exposure photos of the sky.
  • Problem: the sky rotates over the course of a long exposure.
  • Solution: make a motorised mount which rotates your camera at the same rate.

I'm aiming to build a simple "barn door" mount (http://en.wikipedia.org/wiki/Barn_door_tracker) to enable me to take long exposure sky photos. At its simplest this is two hinged pieces of wood connected by a threaded rod which you turn slowly to increase the angle at the hinge. I'd like to drive this with a stepper motor so it can be left running, and ideally let the Arduino do some of the maths to compensate for the changing geometry of the mount.

Martin de S 12:25, 13 August 2013 (BST)