Posts with «internet of things» label

How to update esp8266 firmware

In this post, we are going to upload firmware to ESP8266 (ESP-01) . The firmware can be updated by both arduino as well as usb-ttl module.
ESP-01 is wifi SoC module and it has two GPIO pins i.e. GPIO0 AND GPIO2
For using ESP8266, we can use either AT commands using any terminal software/ esplorer ide (it supports lua programmming and AT commands) or we can use arduino library.
ESP8266 is a 8-pin SoC having two GPIO pins, it requires 3.3 volt and the current consumed by wifi module can't be attained through arduino. Therefore, if we are using arduino we need external 3.3 volt power supply.
Esp8266 wifi module can act as STA as well as AP or both


Things required:

1. USB-TTL module
2. Perfboard
3. Male and female berg strip
4. Female to female jumper wires
5. ESP-01
6. Nodemcu flasher
7. Firmware to be updated
8. Little bit of patience :)

Connections:

Make connections as given below:
ESP8266 side                                               USB-TTL module
Rx                                                                  Tx
Tx                                                                  Rx
CH_PD and Vcc                                           3.3 volt provided by the usb-ttl module
GND                                                              GND
GPIO0                                                           GND (while updating the firmware only)

Updating the firmware:

We had connected switch to GPIO0, by pressing the switch it GPIO0 will be grounded
In order to update the firmware, make the connections on perfboard. In this circuit, we are using two switches
one for GND and other for GPIO0.
Download Nodemcu flasher from the link below:
Download firmware from the link below:
Make settings as given in the picture. Browse the firmware file (ends with .bin)

Note: GPIO0 should be grounded while updating the firmware.
Vcc and CH_PD should be connected to 3.3 volt only

Check out the video:


Thanks for visiting this post.

In the meantime, do check my youtube channel:

Fun with electronics


Temperature updation on thingspeak using sim900

Hello friends,

In this post we are going to discuss how to upload temperature on thingspeak channel using sim 900 and arduino uno. As I had already uploaded the data on thingspeak channel using sim 900 and terminal software.

Introduction:

This project is a wireless temperature logger on thingspeak channel using gsm module and arduino.
For temperature sensor, we are using lm35, that gives output in millivolt which can be easily calibrated in  terms of  °C. We have to use adc module, since it's an analog sensor. Once the raw data is converted into temperature, we can upload the data.

Now, we are ready to upload the data on thingspeak channel. Thingspeak provides api for uploading of data. Before this, we have to use activate GPRS on sim900. We also to provide APN for accessing the internet. After activating the GPRS, we have to use GET like this:

GET http://api.thingspeak.com/update?api_key=QZFXXXXXXXXXXX&field1=data

Replace this api with yours, and data is the data you want to be upload. You can upload a number of field like temperature, pressure, humidity, etc.
 

Stuff you need:

  1. SIM900A
  2. Arduino uno
  3. LM35 (it's output is in degree celsius)
  4. 12 volt adapter (for GSM module)
  5. Jumper wires
  6. Account on thingspeak


Connections:

Arduino                              GSM module
Pin no. 7     ======>         Tx
Pin no. 8     ======>         Rx
Gnd            ======>          Gnd

Output of LM35 is connected to A0 of arduino uno.


Download the code from here:




  

ESLOV is the amazing new IoT invention kit from Arduino

For years, the open-source philosophy of Arduino has been the inspiration to robots, drones, medical and space research, interactive art, musical instruments, 3D printers, and so much more. Now, Arduino is on a mission to radically simplify the way you build smart devices. Introducing ESLOV, a revolutionary plug-and-play IoT invention kit.

ESLOV consists of intelligent modules that join together to create projects in minutes with no prior hardware or programming knowledge necessary. Just connect the modules using cables or mounting them on the back of our WiFi and motion hub. When done, plug the hub into your PC.

ESLOV’s visual code editor automatically recognizes each module, displaying them on your screen. Draw the connections between the modules on the editor, and watch your project come to life. From there, publish your device to the Arduino Cloud and interact with it remotely from anywhere (including your phone). The Arduino Cloud’s user-friendly interface simplifies complex interactions with sliders, buttons, value fields, and more.

The ESLOV modules and hub can also be programmed with the wildly popular Arduino Editor — you can use either the online editor or the desktop-based IDE. With the provided libraries, you can customize the behavior of the existing modules, enhance the hub’s functionalities, as well as modify the protocols of both the hub and the modules.

With a total of 25 modules buttons, LEDs, air quality sensors, microphones, servos, and several others the possibilities are endless. Sample applications include everything from a monitor that lets you know if your baby is safe, to a washing machine notifier that tells you when your laundry is finished, to a thermostat that you can adjust while out of the house.

In line with the core values of the Arduino community, ESLOV’s hardware and software are open-source, enabling you to produce your own modules. Additionally, Arduino will welcome third-party modules from partners and other certified programs.

To accelerate its development in the open-source spirit, ESLOV — which began as part of a three-year EU-funded PELARS project — is now live on Kickstarter and needs your support.

The toolkit is offered in a variety of sizes, depending on the number of modules. Prices range from ~$55 USD to ~$499 USD, with multipacks and other opportunities available as well. Delivery is expected to get underway in June 2017.

In terms of hardware, the main hub is currently equipped with a Microchip SAM D21 ARM Cortex-M0+ MCU at 48MHz and built-in WiFi (just like the MKR1000). Each of the modules are small (2.5 x 2.5cm), low-power (3.3V), single-purpose boards featuring the same processor found at the heart of the Arduino/Genuino UNO: Microchip’s ATmega328P.

The modules can be reprogrammed via I2C bus or with an external programmer. ESLOV’s hardware includes firmware from our factory, dedicated to the specific function of each module.

The ESLOV connector has five pins (one more than standard I2C) for automatically configuring the module and handling the sleeping states to boost battery life. Tests can be performed on your computer via USB. The modules’ firmware and the hub’s software can be updated both using the USB cable and over-the-air (OTA).

Those heading to World Maker Faire in New York on October 1st-2nd can learn more about the kit inside the Microchip booth in Zone 3, as well as during Massimo Banzi’s “State of Arduino” presentation on Saturday at 1:30pm in the New York Hall of Science Auditorium.

Want to learn more or back ESLOV for yourself? Check out its Kickstarter page!

Hackaday Prize Entry: Smart USB Hub And IoT Power Meter

[Aleksejs Mirnijs] needed a tool to accurately measure the power consumption of his Raspberry Pi and Arduino projects, which is an important parameter for dimensioning adequate power supplies and battery packs. Since most SBC projects require a USB hub anyway, he designed a smart, WiFi-enabled 4-port USB hub that is also a power meter – his entry for this year’s Hackaday Prize.

[Aleksejs’s] design is based on the FE1.1s 4-port USB 2.0 hub controller, with two additional ports for charging. Each port features an LT6106 current sensor and a power MOSFET to individually switch devices on and off as required. An Atmega32L monitors the bus voltage and current draw, switches the ports and talks to an ESP8266 module for WiFi connectivity. The supercharged hub also features a display, which lets you read the measured current and power consumption at a glance.

Unlike most cheap hubs out there, [Aleksejs’s] hub has a properly designed power path. If an external power supply is present, an onboard buck converter actively regulates the bus voltage while a power path controller safely disconnects the host’s power line. Although the first prototype is are already up and running, this project is still under heavy development. We’re curious to see the announced updates, which include a 2.2″ touchscreen and a 3D-printable enclosure.


Filed under: The Hackaday Prize

How to Develop a Sellable Bluetooth Low-Energy (BLE) Product

Bluetooth Low-Energy (BLE) is a great bluetooth solution for your electronics product even if energy use isn't a factor.

Read more on MAKE

The post How to Develop a Sellable Bluetooth Low-Energy (BLE) Product appeared first on Make: DIY Projects and Ideas for Makers.

Prototyping a smart bulb with JavaScript, Arduino + PubNub

In this video, our friends at PubNub are going to create a smart home network that builds upon their previous Johnny Five tutorial. They again hack an Arduino Uno using JavaScript, but this time to create the simplest smart bulb. Because by “smart bulb,” we really just mean an LED.

The tutorial was developed by Tomomi Imura from PubNub and also uses Johnny-Five. No, not the robot from the movie Short Circuit. It is an open-source JavaScript robotics framework that lets you program an Arduino with Node.js. The bulb itself is remotely controlled via a web portal.

To establish the realtime communication between the Arduino and a web browser, the PubNub Data Stream Network (DSN) is used. PubNub provides global infrastructure and allows you to build and scale real-time apps and IoT devices quite easily.

The remote controller (web app) is written in JavaScript. This is a simple user interface that includes only one button. While a completed code sample is available on CodePen, this tutorial employs a simplified version so that it’s easier to follow along.

 

Getting Started with Johnny-Five for IoT (Part 1)

Interested in the world of hardware hacking, but feeling left out because you just don’t have the time to learn another language? Or maybe you aren’t comfortable using Sketch to program? Have no fear, you can easily use JavaScript to program boards like Arduino and Genuino. Yes, just JavaScript!

In this series of video, PubNub’s Tomomi Imura shows you how to start hacking an Arduino with Node.js using Johnny-Five, a JavaScript Robotics Framework.

Part one of this tutorial covers:

  1. Setting up a board.
  2. Building the Hello World of hardware, a LED blink.
  3. Writing your Johnny-Five code to make it blink programmatically.

Enjoy the tutorial!

 

Make a Wi-Fi Enabled Light Switch Turner Onner

Use a servo to flick a light switch mechanically — without ever touching 110V power — with this Wi-Fi “Turner Onner”

Read more on MAKE

The post Make a Wi-Fi Enabled Light Switch Turner Onner appeared first on Make: DIY Projects and Ideas for Makers.

How To Keep An Unruly Dryer In Line

If necessity is the mother of invention, then inconvenience is its frustrating co-conspirator. Faced with a finicky dryer that would shut down mid-cycle with a barely audible beep if its load was uneven (leaving a soggy mass of laundry), [the0ry] decided to add the dryer to the Internet of Things so it could send them an email whenever it shut itself down.

After opening a thinger.io account, adding the soon-to-be device, and setting up the email notification process, [the0ry] combined the ESP8266 Development Board, a photosensitive resistor, and a 5V power supply on a mini breadboard. All that was left was to mount it on the dryer and direct the LDR (light-dependent resistor) to the machine’s door lock LED to trigger an email when it turned off — indicating the cycle had finished or terminated prematurely. A little tape ensured the LDR would only be tripped by the desired light source.

If you’re an apartment-dweller have WiFi in the wash area it would be awesome to see a battery-powered version you take with you. But in general this is a great hardware blueprint as many device have status LEDs that can be monitored in a similar way. If you want to keep the server in-house (literally in this case) check out the Minimal MQTT series [Elliot Williams] recently finished up. It uses a Raspberry Pi as the center server and an ESP8266 is one of the limitless examples of hardware that plays nicely with the protocol.

We love seeing hacks like this because not only does it conserve water and energy by reducing instances of rewashing, but it’s also a clever way to extend the life of an appliance and potentially save hundreds of dollars in replacing it. Add this to the bevvy of hacks that add convenience to one’s home — some of which produce delicious results.


Filed under: Arduino Hacks, home hacks

Turn Your Electronics Project into a Sellable Product

Do you dream of developing a hot, new hardware gadget and bringing it to market? Maybe your goal is to make the world better with your product, or perhaps you just want to get filthy rich selling your product. Developing a project prototype using an Arduino, Raspberry Pi, or other […]

Read more on MAKE

The post Turn Your Electronics Project into a Sellable Product appeared first on Make: DIY Projects and Ideas for Makers.