Using MQTT to connect Arduino to the Internet of Things Recently I attended the AT&T Hackathon for Machine to Machine and Internet of Things. Patrick and I didn't come up with a compelling application. Instead, we spent the time creating a tutorial on how to connect an Arduino with an Ethernet or GSM shield to the Internet of Things through 2lemetry's MQTT service. Here is the tutorial as it was written. MQTT & Arduino Tutorial Chris Larson, Patrick Ester Lab Guide: Arduino Hardware In this document I distinguish between Arduino code and AVR code. In fact they are the same thing: what I call Arduino code is a C/C++ function library written using AVR code and targeting the specific hardware used in Arduino microcontrollers. The purpose of Arduino code is to hide AVR code as much as possible, ostensibly to make programs easier to read and write. You will need to read and write code in the Arduino style, and may need to use the AVR style sometimes.
DIY ESP8266 Development Board A DIY ESP8266 Development Board from Electro-Labs: In this project, we are building an ESP8266 Development Board which lets the user make connection to ESP8266 from a PIC microcontroller and a PC. The board also provides all the needs to be used as microcontroller peripherals such as LCD display, pusbuttons, indicator LEDs and GPIO extension. The PC connection is done by the help of FT232RL USB-UART converter over a Mini-USB connector. TMP36 Temperature Sensor Connecting to a Temperature Sensor These sensors have little chips in them and while they're not that delicate, they do need to be handled properly. Be careful of static electricity when handling them and make sure the power supply is connected up correctly and is between 2.7 and 5.5V DC - so don't try to use a 9V battery!
Electronics As this is now abuzz-phrase you’ll see littering the press, I thought I’d put in my two-pence worth on this “new” subject. The “Internet of Things” is a phrase used to describe things that can be controlled or monitored (or both) over the Internet. In 1962 I was too young to be aware of what was happening outside of my own house! but at this time, a fellow called Licklider from MIT was describing what he called a “galactic network” concept in which computers all over the world would talk to each other.
Home automation Please enter your email to continue: Already have an account? Sign in Arduino for Visual Studio and Atmel Studio extension Sign in to write a review Sort by: Hi everyone, Now this is a great tool for debugging those tiny processors almost as good a the big ones. When Do I Water My Plants? (Soil Hygrometer Sensor) Today's project is reading a soil hygrometer in a house plant to determine the moisture level. The sensor we are using is the Sunkee Soil Hygrometer, which has analog and digital output. It is marked VCC (5v), Gnd, D0, and A0. Interrupt based Pulse Counter Interrupt based Pulse Counter Arduino sketch example for interrupt based pulse counting: //Number of pulses, used to measure energy. long pulseCount = 0; Interrup based pulse counting with sleep mode This sketch detects pulses and prints to serial the character P. In order to reduce the power consumption the Atmega 328 is put into sleep mode in-between pulses. The interrupt pulse input (on digital input pin 2 or 3) is used to wake up the device.
Hardware Hacks: DS3231 Real-Time Clock I've used the DS1307 Real-Time Clock (RTC) for a few projects in the past, but I'm currently working on several datalogger projects that use both RTC and SD-card. The problem is that the SD card won't survive 5V, and the DS1307 won't work at 3.3V. That particular clock chip needs a minimum of 4.5V according to both the datasheet and some inadvertent "experimental verification". Rex Belli (One of my students and an all-around bright guy, contact me if you're hiring a summer intern) pointed me towards the DS3231 as a possible replacement. It has several advantages over the DS1307: It runs fine on either 3.3V or 5V.It has a built-in oscillator: no external crystal required.It has two built-in alarms that can drive an interrupt pin, so if you just need a periodic interrupt signal this chip can in many cases do the job without a microcontroller.It' rated to 2 minutes per year (max) drift.
OneWire in Due Hi Kcore. Thank you for your time testing. Ok, those are good news! This leaves me more confident. I Had to tweak the timings in read and write timeslots, and I was affraid that i might be just tweaking the lib for my own probes or probe cable length, etc. That proves the opposite. Bitmap converter for mono and color LCD displays LCD Assistant LCD Assistant is a free tool for converting monochromatic bitmaps to data arrays for easy use with programs for embedded systems with microcontrollers and graphics monochromatic LCD displays like a T6963C, KS0108, SED1335 etc. Program create files for use with any C compiler : for AVR, ARM, PIC, 8051 and ohter microcontrollers. You can use directly with Arduino, mbed and any other design environment based on C compiler. If you use graphic LCDs and you want to display pictures, this program is for You! You can draw image in you best graphic editor and save it in *.bmp file.
Introduction to pulse counting Reading pulses from meters with pulse outputs. Last updated: November 2010 Authors: Glyn Hudson, Trystan Lea A note on what this document covers The main thing that's being added here to the wealth of information on the internet about pulse counting is how to count pulses from more than two pulse outputs sources (up to 12 sources) using a continuos sampling and direct port manipulation Arduino sketch as opposed to interrupt driven counting.