The Arduino is a small programmable device that can hold a small program and perform tasks such as reading temperature sensors, turning on or off swit...
The Arduino is a small programmable device that can hold a small program and perform tasks such as reading temperature sensors, turning on or off switches, and can even serve as the ‘brain’ for a robot. I have used the Arduino (actually freeduino) for projects related to HVAC and hydroponics automation.
It is often useful to be able to communicate with the Arduino – for example, a common use of an Arduino is for data collection. You may have a temperature sensor wired in to the Arduino and interface with flash storage to log the temperature data. Later you have to go remove the flash storage and transfer it to your computer. But what if you could communicate with the Arduino? With Ethernet or wireless connectivity, you could simple connect to the Arduino with a computer and capture the data real time. This offers much more automation, and opens a world of possibilities – real time alerts, real-time adjustments (have the Arduino switch something on/off) and more.
There are already a number of choices available for communications.
Serial: The Arduino has TTL lines, not traditional RS232, but it is possible for reasonable cost to use a conversion/level adapter or circuit. You could then run a serial line to a computer. This is acceptable in many cases, but restricts you to using one computer, and in the case of my home, the wiring is not as convenient. I have Ethernet cat5 running all over the place, so if I am going to use a wired solution Ethernet makes the most sense.
WiFi: For some, this may be the best solution. If you can not or do not want to run wires of any kind, there are solutions ranging from 400/900 MHz transceivers that use 4-6 pins for simple communications to more powerful XBee, ZigBee and even 802.11 WiFi. The primary issue I have found with these solutions is cost or the technical expertise required. Also double check if the interface you are using requires any libraries or interface code that will use up space within the Arduino. The RFM units are promising as they are low cost, though I have not successfully interfaced them as of yet.
Ethernet: There are a number of good solutions for adding Ethernet capabilities such as shields and serial to Ethernet bridges/adapters. Some require a ‘tcp/ip stack’ to be written in to the Arduino – consider this as it uses a lot of storage space.
NSLU2 or Computer: For my application, I chose to use some NSLU2 units I had (these are often available via online auction). The NSLU2 is a network attached storage device (NAS) that is often modified (hacked) to run alternate operating systems and change it’s functionality at the hardware level. In my case I overclocked mine and installed Debian Linux using an 8GB flash drive. The NSLU2 also uses a TTL interface, though at 3.3v instead of 5v. Interfacing is done with 3 simple wires, and a resistor is required on one line for the 3.3v to 5v conversion.
This article has presented several options for adding communications capabilities to the Arduio. In a future article I will cover actual specifics of adding a specific interface, including the NSLU2.
Check out http://www.n1van.com for more electronics and amateur radio related information.
Unveiling the Wonders of Aquaponics
Aquaponics is a revolutionary approach to gardening that combines fish farming with soilless plant cultivation, creating a symbiotic environment where both thrive. This innovative method is gaining traction for its efficiency, sustainability, and ease of maintenance. It's a perfect solution for those looking to maximize their yield in limited spaces without the traditional gardening hassles. Dive into the world of aquaponics and discover how you can cultivate a thriving garden with minimal resources and effort.Automatically Capturing, Saving and Publishing Serial RS232 Data to the Web
This article will describe setting up a system that will utilize a lightweight command line (CLI) install of Linux (Ubuntu in this example) to capture...Arduino Serial to Ethernet Using an NSLU2 – Technical Details
Here is another option for getting your Arduino (or other PIC) connected to your network (ethernet) – use an old NSLU2! The NSLU2 and Arduino both tal...