Reaction Game

This is another simple project on the GCDuino using 5 LEDs and 1 button switch. You need to press the button when the middle LED is lit and it gets faster and faster each time the button is pressed.

The maximum score is 5 but you need to have 25 successful presses – it’s harder than you think!
ReactionGame_bb

I made this into a permanent project and powered from a mobile phone battery – yes it works on 3.6volts!

Here is the code:

GCDuino+ Weather Station (WioLite)

This is a very light-weight version of the secluded.io Wio Weather Station using just an GCDuino+ (version of GCDuiNODE adapted for the ESP8266) and a few off the shelf components.

Data from the weather station is pushed up to Wunderground and you can see my station’s data at IQUEENSL506.

Components needed for this project:

  • GCDuino+
  • Standard Light Dependent Resistor (LDR)
  • DHT22 Temp/Humidity Sensor Module
  • Bosch BMP180 Pressure/Temperature Module
  • 2 10k resistors for pull-ups. You can use Arduino internal ones too if you want to risk it.

Wunderground does not support light readings (only UV and Solar radiation – and you need separate sensors for this), but LDRs are suitably cheap so thought I would throw one on there.

I used the following Adafruit libraries to read the sensors:

To get these libraries just navigate to ~/sketchbook/libraries and clone each of the libraries using the github urls in the above pages. I use SSH so my command line usually looks something like this:

One top tip when using the DHT library with the GCDuino+ and GCDuiNODE is to make sure you initialise the DHT like this to allow for slower clock speed:

I also cheated a bit with the DHT, so I could put it straight in on pins 11, 12, 13 and 3.3 I made some pseudo ground pins in software.

So far so good it seems to work fine – the protocol that DHT uses is digital so a slightly dodgy ground is probably passable!

Anyway – here are some pictures of the assembled board. For those with good eyesight you will see my very badly soldered SMD resistor between put 13 and 3.3v line on one of the pictures!

espduino_wio_back

espduino_wio_front

The code is still being updated a fair bit so I will post the entire code once I am happy with it.

I am not posting directly to Wunderground as their API is not the greatest, so I have written a small nodejs server that acts as a go between performing a few functions such as:

  • Metric -> Imperial Conversions (yes – Wunderground takes imperial data only on it’s API!)
  • Creating datestamp (Wunderground insists on a date/time stamp in API – not great if you don’t have an RTC)
  • Managing API Keys. Wunderground API takes station id and a clear text password (yes the only you also log in normally to the site with!) so I have replaced this with a generated API key that I map to a Wunderground user.

If you like weather stations, watch this space, the full version of Wio with rain gauge, wind and lots of other sensors will be coming soon!

 

 

GCDuino Theremin

Firstly if you are too young to know what a Theremin is – head on over to the Wikipedia page to find out more. In a nutshell, the Theremin is a musical instrument that can be played without physical contact by the musician.

The original Theremins used radio antennas but our version is considerably simpler using a simple LDR (light dependent resistor) to detect how close your hand is and change the tone on the speaker accordingly. We also added a battery (using an old camera battery – these things last forever on Arduino  projects as they have very high mAh values) and an RGB Led for extra effect.

Continue reading “GCDuino Theremin”

GCDuino SimpleBot

SimpleBot is a super-simplified version of the Wombat robot that we used in the Gold Coast TechSpace Discovery Workshops program.

In this version we don’t use the MiniMoto as we only have modified servos which can be driven directly by the low current outputs of the Gcduino.  We also use an old mobile phone battery as a power source and the wheels are also recycled.

The bump sensor is merely a resistor bent over and the LED can be used to signal a bump but also nicely doubles as a stabilizer!

Modified servo means the end stops have been removed and the position potentiometer disengaged.

  • Pin 5 – Servo 1 (middle control line of servo wires)
  • Pin 6 – Servo 2 (middle control line of servo wires)
  • Pin 10 – Piezo (option – not fitted as servo noise can mask the piezo sound!)
  • Pin 11 – Bump Sensor (Connects to 0Volt when bumped)
  • Pin 13 – Bumped Led via 220 ohm resistor to ground

Here is the code: ServoMotors_with_Bump_Speaker

 

 

Minimoto Attacknid

This project reuses an old Attacknid robot that I found at the local Endeavour Foundation shop. It was missing it’s controller from the top, but otherwise the battery and motors were fine.

Wombat11
MiniMoto on Wombat

GCDuino comes with a MiniMoto shield that we use with the Wombat robots in the Gold Coast TechSpace Discovery workshops. Wombat is a 2 wheeled robot that the kids build and programme to navigate around a room using a home made bump sensor.

The Minimoto shield includes a HBridge that can be used to drive the 2 motors of Wombat – this can be used to also drive the motors of the Attacknid.

Continue reading “Minimoto Attacknid”