Using an Arduino + Ethernet Shield to Update a ThingSpeak Channel Using an Arduino + Ethernet Shield to Update a ThingSpeak Channel This tutorial demonstrates how to use the Arduino to read in the analog input and update a ThingSpeak Channel by sending an HTTP POST via the Arduino Ethernet Shield or the Arduino Ethernet (all-in-one). The analog input can be the output of a sensor, like a light sensor or temperature sensor. ThingSpeak Client Arduino Sketch This Arduino sketch takes the value of Analog Pin 0 and updates Field 1 of a ThingSpeak Channel using the ThingSpeak API. Arduino_to_ThingSpeak.ino [Arduino 1.0+] ThingSpeakClient.pde [Arduino 0023 or less] Getting Started with ThingSpeak Sign Up for New User Account – a New Channel by selecting Channels and then Create New ChannelEnter the Write API Key in this sketch under “ThingSpeak Settings” ThingSpeak API IP Address The Arduino + Ethernet Shield does not have DNS by default, so you need to send data using an IP address. HTTP POST to ThingSpeak Watchdog Timer
Arduino-Square with Color LCD • To install the Color-LCD library copy and paste the entire “ColorLCDShield” folder into the Arduino Library folder o Win: My Documents\Arduino\libraries\ o OS X: ~/Documents/Arduino/libraries/ • Start the Arduino software and open the BSQ-ColorLCD sketch. • To configure Arduino for your Arduino-Square select Tools->Board and select “Arduino Pro or Pro Mini (3.3V, 8Mhz) w/ ATmega 328” • Go to Tools->Serial Port and select the Serial Port that was created for the FTDI serial port adapter (example “COM 5”). • Click on the “Upload” button. • Once the code is done uploading an image with multiple colored bars should appear on your LCD Shield. Article BV4208 - Byvac From Byvac Using the BV4208 with the Arduino Using an LCD display would normally take up at least 6 data lines, using the BV4208 will take up just 2 and these are the I2C lines so are part of a bus, if another I2C device is on this bus then effectively no extra lines are used. Resources BV4208 Updated June 2012 Arduino version 1.01 Specific to the BV4208, will also need the I2C and wire libraries. There is also an alternative library that can be found |here by "Practical Maker". Hardware The top of the IC is marked so that it can easily be seen where to connect the display ans the I2C bus. Above shows the connection diagram pull up resistors (4k7) will be required on the I2C bus - not shown. Contrast The contrast pin is only provided for display blanking and should still be connected to a potentiometer thus: When using the 20x4 ByVac display the contrast is automatic and so there is no need to connect this at all. Connection to an LCD display, note the pull up resistors. Software Library Print Cls
Pachube & Arduino Wireless Wii Nunchuck controlled Arduino Use a completely unmodified wireless Wii Nunchuck as a control system for any Arduino based project. No added radio transmitter/receiver pairs etc. This instructable does assume some experience with the Arduino microcontroller. The radio receiver that comes with the wireless 'chuck is connected to an Arduino which then reads data from the 'chuck. There are descriptions on the net of how to use an Arduino to "read" data from a standard wired Nunchuck. A special adapter has been made by with six contacts on it to enable the experimenter to connect the plug on the end of a Nunchuck to the pins of an Arduino board. Here is an example of one of these: I am going to decribe a more robust connection however. The software required to "read" a standard chuck (i.e. with a cable) will not work on a wireless chuck. The wireless chuck has a 3 axis accelerometer, 2 buttons and a proper proportional thumb operated joystick. Here are two types of wireless chuck that I know will work with this hack.
Arduino Port Manipulation Control Arduino I/O pins faster and with less code in chapter forty-three of a series originally titled “Getting Started/Moving Forward with Arduino!” by John Boxall – a series of articles on the Arduino universe. [Updated 19/01/13] In this article we are going to revisit the I/O pins, and use what is called “Port Manipulation” to control them in a much faster manner than using digitalWrite()/digitalRead(). Why? Speed! Memory! Once again I will try and keep things as simple as possible. First, we’ll use the I/O as outputs. D – for digital pins seven to zero (bank D)B – for digital pins thirteen to eight (bank B)C – for analogue pins five to zero (bank … C!) Register C can control analogue pins seven to zero if using an Arduino with the TQFP style of ATmega328, such as the Nano or Freetronics EtherTen). It is very simple to do so. where y is the register type (B/C/D) and xxxxxxxx are eight bits that determine if a pin is to be an input or output. And the results from the MSO. Like this:
Breadboard Sanguino Okay, so you want a Sanguino but Zach's Sanguino is too expensive ;-> Or too red ;-> Or you just have to have it NOW ;-> And you just used up the last of your solder so a strip board is out. What are you to do … bread board Sanguino. Of course, nothing in life is free. While the bread board Sanguino is easy and quick, it also is very limited. Oh, and by the way, I lied. And one last thing … this page is derived from an entry on the [Gorilla Robotics blog]. Thanks to the Arduino creators. Breadboard Atmega644p 16MHz crystal momentary switch 4 x .1uF capacitor 2 x 22pF capacitor 10K resistor 3 x 6 pin male header 1 3 pin by 2 row male header 6 wire ribbon cable, about 4-6 inches 3/32 heat shrink tubing, about 4-6 inches 22g wire Wire cutter and stripper I'll list the 644p pins that are important to the bread board sanguino. The bread board Sanguino was derived from the Sanguino schematics. What is critical: The stuff in the parts list above. **Components ** Place a .1 uF cap from 9E to 9F.
Introducing the Wixel USB Wireless Module EDIT: I've entered this into the makerbot contest , so please vote if you liked it. What am I 'making' you ask, hopefully ideas and desire to create. :] /EDIT I have been playing with a Arduino microcontroller and robotics bits and pieces for a while now. I'm still designing my first robot and wanted a two-way wireless capability, but until now they were either too expensive , or too basic . BUT NOW I HAVE THE SOLUTION: The Pololu Wixel programable USB wireless module! It comes in a variety of packages, the one I chose was the assembled combination deal, (picture two ), which has a pair of modules and a mini USB cable for $42 USD + shipping. So what can it do you ask? Well to quote Pololu: "The Pololu Wixel is a general-purpose programmable module featuring a 2.4 GHz radio and USB. a. Details of these apps can be found at . Next - What you need.
PortManipulation Reference Language | Libraries | Comparison | Changes Port registers allow for lower-level and faster manipulation of the i/o pins of the microcontroller on an Arduino board. The chips used on the Arduino board (the ATmega8 and ATmega168) have three ports: B (digital pin 8 to 13) C (analog input pins) D (digital pins 0 to 7) Each port is controlled by three registers, which are also defined variables in the arduino language. DDR and PORT registers may be both written to, and read. PORTD maps to Arduino digital pins 0 to 7 DDRD - The Port D Data Direction Register - read/write PORTD - The Port D Data Register - read/write PIND - The Port D Input Pins Register - read only PORTB maps to Arduino digital pins 8 to 13 The two high bits (6 & 7) map to the crystal pins and are not usable DDRB - The Port B Data Direction Register - read/write PORTB - The Port B Data Register - read/write PINB - The Port B Input Pins Register - read only PORTC maps to Arduino analog pins 0 to 5. Examples See
Arduino & Freeduino Knowledge Am loop antenna, used to listen to electronic "noise" This instructable will teach you how to hear the sound of electronic devices. So, I was trying to make an AM transmitter yesterday (failed...), to test it I had my am radio on it's lowest frequency, 531khz. Unfortunately, instead of hearing music from my transmitter, I heard just static and a squelchy sound at random intervals. I investigated further, and realised that anything electronic could be heard if close enough to the antenna. The most awesome thing I found was that If you point any infrared remote at the antenna (at close range), you can very easily "hear" the pulses of infrared waves. Below is a recording of the sound of pointing a TV remote at it, and a recording of my laptop power supply when you unplug it from the mains.
Electronics : Microprocessors : I2C - Two-Wire Peripheral Interface - for Arduino Tip A summary of everything shown below is available further down this page: This post describes how the I2C (Inter-Integrated Circuit, or "Two-Wire") interface works, with particular reference to the Arduino Uno which is based on the ATmega328P microprocessor chip. A lot of the details however will be of more general interest. The Two-Wire interface is extremely useful for connecting multiple devices, as they can all share the same two pins (plus a ground return). Because of this you could have an LCD screen (say) at address 10, a keyboard at address 11, and so on. More information about I2C at: More information about the Arduino Two-Wire interface at: Other protocols Pinouts On the Arduino Uno the pins you need are: Analog port 4 (A4) = SDA (serial data)Analog port 5 (A5) = SCL (serial clock) On the Arduino Mega, SDA is digital pin 20 and SCL is digital pin 21 (they are marked SDA and SCL on the board itself). Sending data