Posts with «iot» label

ArduWorm: A Malware for Your Arduino Yun

We’ve been waiting for this one. A worm was written for the Internet-connected Arduino Yun that gets in through a memory corruption exploit in the ATmega32u4 that’s used as the serial bridge. The paper (as PDF) is a bit technical, but if you’re interested, it’s a great read.

The crux of the hack is getting the AVR to run out of RAM, which more than a few of us have done accidentally from time to time. Here, the hackers write more and more data into memory until they end up writing into the heap, where data that’s used to control the program lives. Writing a worm for the AVR isn’t as easy as it was in the 1990’s on PCs, because a lot of the code that you’d like to run is in flash, and thus immutable. However, if you know where enough functions are located in flash, you can just use what’s there. These kind of return-oriented programming (ROP) tricks were enough for the researchers to write a worm.

In the end, the worm is persistent, can spread from Yun to Yun, and can do most everything that you’d love/hate a worm to do. In security, we all know that a chain is only as strong as its weakest link, and here the attack isn’t against the OpenWRT Linux system running on the big chip, but rather against the small AVR chip playing a support role. Because the AVR is completely trusted by the Linux system, once you’ve got that, you’ve won.

Will this amount to anything in practice? Probably not. There are tons of systems out there with much more easily accessed vulnerabilities: hard-coded passwords and poor encryption protocols. Attacking all the Yuns in the world wouldn’t be worth one’s time. It’s a very cool proof of concept, and in our opinion, that’s even better.

Thanks [Dave] for the great tip!


Filed under: Arduino Hacks, security hacks
Hack a Day 11 Nov 16:30

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:




  

An interactive ball for your dog’s remote entertainment

Recently presented at Disrupt SF Hackathon 2016, this modified hamster ball rolls and dispenses treats while you’re away!

Creators Anthony Alayo, James Xu, and Lawrence Chang don’t like the idea of leaving doggies alone all day to fend for themselves. Although these companions will generally wait for their owners to get home, this surely gets boring. To help solve this problem, they created the DogeBall–a hamster ball equipped with advanced electronics including what looks to be an Arduino MKR1000. This allows it to roll around under remote control via an accompanying app, and can even give your pooch a treat, perhaps as a reward for not chewing up your shoes!

Say you’re at work and your dog has been alone for a while. If you have a nest cam or other home cameras setup, playing with him/her is easy. The app we created acts as a remote controller, connecting to the ball over the internet. Shoot your dog a treat, hit the speak button to talk with him, or control the ball as if you were right there beside him/her.

Sound like something you might want for your pup? You can check out the team’s Devpost article or TechCrunch’s writeup on this excellent project!

(Photos: Devpost)

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

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.

 

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.

Massimo Banzi explores the meaning of the IoT

Back at Arduino Day 2016, Massimo Banzi explored the true meaning of the Internet of Things in a more philosophical, approachable way. During his presentation, the Arduino co-founder touched upon the current state of the industry, some guiding principles, as well as what the future may entail.

“A lot of people are trying to build products that are connected, but not a lot of stuff makes a lot of sense right now. There’s a lot of strange stuff happening. It’s the beginning of an industry,” Banzi explained. “There’s a couple of misconceptions. A lot of people tend to equate the Internet of Things with smart thermostats for your home, and it’s much more than that. The part of the IoT that right now is impacting and can impact your life the most is the least sexy one.”

You can watch the entire talk below:

Bring IoT features to Arduino boards with the Yún Shield!

Great news for Makers working on IoT projects! The Arduino and Genuino Yún Shield — now available on our online store for $49.90/€43.90 — is a device that enables you to easily bring Yún features to Arduino and Genuino boards supporting shields.

It’s the perfect shield to start connecting your projects to the Internet thanks to the Yún Web Panel and the dedicated ”YunFirstConfig” sketch. This new feature, implemented in the new Arduino Software (IDE) 1.6.9, allows you to manage your shield preferences and upload your sketch on the attached Arduino or Genuino. Like the previous Yún board, the Yún Shield uses the Bridge library and extends your board capabilities using the Linux processor.

The new Yún family runs the latest version of OpenWRT (15.05 Chaos Calmer), which offers an additional layer of security and a large amount of bug fixes over previous Yún distribution. The precompiled package list is huge (we have more than 4,000 packages ready to be installed), and if you still can’t find what you are looking for, you can use the community provided repositories since the new release is fully modular (not a fork).

Want to learn more? Explore all there is to know about the Yún Shield, including its documentation via the links below:

Go hands-on with these dedicated tutorials:

Got any question? Join the forum!

Arduino Blog 10 May 11:51

Not Even Hamsters Are Safe From The Internet Of Things

The internet of things is this strange marketing buzzword that seems to escape from the aether and infect our toasters and refrigerators. Now even a hamster is not safe.

[Mifulapirus]’s hamster, Ham, was living a pleasant hamster life. Then his owner heard about another hamster named Sushi, whose running wheel stats were broadcasted to the internet. Not to be left behind, Ham’s wheel was soon upgraded. Now Ham is burdened by the same social pressures our exercise apps try to encourage us to use. No, we are most certainly not going to tell our friends about two fourteen minute miles with a twenty minute coffee break in the middle, MapMyRun, we are not.

The feat of techno enslavement for the little hamster was accomplished with a custom board, an esp8266, and an arduino as described in the instructable. The arduino can be left out of the project now that the libraries have been ported to the esp8266. A hall effect sensor detects when the 3D printed hamster wheel is spinning.

If you’d like to check in on Ham, the little guy is alive and well, and the twitter is here. It looks like it’s been upgraded since the original article was posted. Now it shows when Ham is awake and running around the cage doing hamster errands.


Filed under: Arduino Hacks
Hack a Day 03 May 16:30

This Week in Making: Marble Machines, Filament Tips, and More

This past week we celebrate Arduino Day with Makers like, saw a new marble machine, and started a conversation about how coding is taught.

Read more on MAKE

The post This Week in Making: Marble Machines, Filament Tips, and More appeared first on Make: DIY Projects and Ideas for Makers.