background preloader

Arduino-info - home

Arduino-info - home
Related:  Arduino programmingArduino

Using MQTT to connect Arduino to the Internet of Things | Chris Larson 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 AT&T Foundry Hackathon 14 - 15 September, 2013 The following is a set of directions used to successfully connect an Arduino Uno with Ethernet shield and the Arduino Leonardo with the 3G shield to the 2lemetry MQTT web service. Hardware Arduino UNO or Arduino Leonardo, Ethernet Shield, 3G/GPRS Shield Software Arduino IDE v. 1.0.5 Libraries Pubsub from Knolleartlemetrytimer library v. 1.2 Installation of libraries on Arduino For use with an Arduino Uno and the Ethernet shield, you will need the PubSubClient library ( Create MQTT Account Create a new sketch.

Lab Guide: Arduino Hardware | Neil's Log Book 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. The AVR Hardware Specification The Seeduino is based on the ATmega1280 AVR microcontroller. [PDF, 9 MB] It’s 400+ pages, you don’t need to know the whole thing, but you can’t read or write AVR code without it. This general pattern indicates a bunch of bits being set in a register. The _BV(…) macro transforms a pin identifier into its Bit Value. You can’t always just search the document. Arduino Pins vs. AVR: Package Position Number AVR: Port and Pin Number

PlanetArduino Exploring Arduino | Companion Site for the Book by Jeremy Blum Misc. Projects&Random Useless Stuff » Blog Archive » Playing with STC15L204 : memory layout / IAP&EEPROM Well, the STC15L204 data-sheet is not very clear on some aspects (the device is simple enough to compensate…). I almost totally forgot that this device had a 512 bytes E2PROM… And I also wanted to explore its memory to try to figure where ISP code could be located, thus I made a small program to dump the memory content , first using a code pointer (something like « ptr=(__code unsigned char *)addr; » ) and then using the IAP registers (and to get some output in the IAP section, I have put a write 0×55 at address 0×123). Here are the results (only displaying lines that does not contain only 0xFF) : On first run : > Device ready 0000 02 00 13 32 FF FF FF FF FF FF FF 02 02 5F 12 00 .... 0310 50 52 4F 4D 0D 0A 00 0D 0A 3E 20 45 4E 44 0D 0A 0320 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 0FF0 FF FF FF FF FF FF FF FF FF 00 0B 00 54 00 A4 BD > IAP/ISP/EEPROM 0120 FF FF FF 55 FF FF FF FF FF FF FF FF FF FF FF FF > END So here are my conclusions :

Arduino Arts - Cool Arduino Projects, Tutorials and More! Using a Temp Sensor | 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! They come in a "TO-92" package which means the chip is housed in a plastic hemi-cylinder with three legs. Reading the Analog Temperature Data Unlike the FSR or photocell sensors we have looked at, the TMP36 and friends doesn't act like a resistor. Remember that you can use anywhere between 2.7V and 5.5V as the power supply. If you're using a 5V Arduino, and connecting the sensor directly into an Analog pin, you can use these formulas to turn the 10-bit analog reading into a temperature: Voltage at pin in milliVolts = (reading from ADC) * (5000/1024) This formula converts the number 0-1023 from the ADC into 0-5000mV (= 5V) Simple Thermometer Getting Better Precision

Electronics | Scargill 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. In 1963 my interest in electronics started with a “Philips E10” kit which started me on the path of building radio receivers, controlling lights and motors.. and I’ve been involved with electronics since then, writing articles, building machines and eventually turning my interest into a business in the 80’s and beyond. That takes care of the local connectivity while the Internet allows that remote control to extend worldwide.

Scargill's Tech Blog 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. cheers and keep up the good work John I have been using Arduino IDE for ages, and it has served me well so far. Very nice product for an Arduino developer using Visual Studio.I should say: a must to have to be efficient. It really worth the moneyAlex Awesome and very first class add-on, makes developing for Arduino seem more of a professional platform and less of a hobbyists toy. Outstanding! A very good replacement for the Arduino IDE (which is basically only a text editior). It would be really necessary to make this available for Libelium Waspmote. Excellent product and SUPER support! Even though the Arduino itself is a great piece of hardware and software, one of its weak points is the IDE. I've been using the plugin with VS2008 and have now upgraded to VS2012. by Nerp | September 21 2012 Thank you! The IDE Arduino deserves Highly recommended.

My Tech Weblog | Gadget Heaven 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. Project info at Electro-Labs. 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; //Used to measure power.unsigned long pulseTime,lastTime; //power and energydouble power, elapsedkWh; //Number of pulses per wh - found or set on the ppwh = 1; //1000 pulses/kwh = 1 pulse per wh void setup(){ Serial.begin(115200); // KWH interrupt attached to IRQ 1 = pin3 attachInterrupt(1, onPulse, FALLING);} void loop(){ // The interrupt routinevoid onPulse(){ //used to measure time between pulses. lastTime = pulseTime; pulseTime = micros(); //pulseCounter pulseCount++; //Calculate power power = (3600000000.0 / (pulseTime - lastTime))/ppwh; //Find kwh elapsed elapsedkWh = (1.0*pulseCount/(ppwh*1000)); //multiply by 1000 to pulses per wh to kwh convert wh to kwh //Print the values. Accuracy Range of 0 to 25kW (typical range for solid state pulse output meters): 1000 pulses per kWh Notes

Electrodragon Blog | Millions of Prototyping Components Online!