Home Blog Page 23

BMP805 Sensor example

A new sensor breakout I got recently the BMP05 Barometric, pressure and Temperature sensor.   #include <Wire.h> #include <Adafruit_BMP085.h> Adafruit_BMP085 bmp; void setup() { Serial.begin(9600); if (!bmp.begin()) { Serial.println("Could not find a BMP085 sensor!"); while...

DIY Arduino proto board

I bought a couple of proto shields but was dissapointed to see that unlike stripboard which I like to use most of them are...

Multi color LED Netduino code example

Similar to Arduino example, same pinout. This will cycle through the red, green and blue colors.   using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace MultiLED { public class...

Multi color LED example

This was a quick test for a multi color LED   int red = 2; int green =3; int blue =4; int j; void setup() { pinMode(red,OUTPUT); pinMode(green,OUTPUT); pinMode(blue,OUTPUT); } void loop() { for (j = 1; j...

Random dice using a TIl311

This example is a random number example using a TIl311 and a Wii nunchuk adaptor. Press the X button to generate a random number...

Dice game using LOL Shield and a Wii Nunchuk

We have a few examples of using the LOL Shield to produce some pretty patterns but how about a basic game, in this case...

More LOL Shield examples and Arduino

Switch LEDS off and on by column #include <Charliplexing.h> void setup() { LedSign::Init(); // initializes the screen } void loop() { for (int x=0; x<14; x++) { for (int y=0; y<9; y++) { LedSign::Set(x,y,1); // turns...

Arduino and LOL Shield random LED effect

This is the first of a new category, just code snippets for you to try. First example is random LEDs on using the LOLShield and...

Arduino and Nokia Colour LCD shield

I recently bought a nice looking shield for experimenting with, it was based on a Nokia LCD, I believe is used in the Nokia...

Arduino and Joystick example

This example shows how to connect a joystick to your Arduino. Here is a picture of the joystick I am using, again this was part...