Posts with «arduino» label

Staring at the Sun: Erasing an EPROM

Flash memory is the king today. Our microcontrollers have it embedded on the die. Phones, tablets, and computers run from flash. If you need re-writable long term storage, flash is the way to go. It hasn’t always been this way though. Only a few years ago EPROM was the only show in town. EPROM typically is burned out-of-circuit in a programming fixture. When the time comes to erase the EPROM, just pop it under an ultraviolet (UV) bulb for 30 minutes, and you’re ready to go again. The EPROM’s quartz window allows UV light to strike the silicon die, erasing the memory.

The problem arises when you want to use an EPROM for long term storage. EPROM erasers weren’t the only way to blank a chip. The sun will do it in a matter of weeks. Even flourescent light will do it — though it could take years.

[TechEkspert] wanted to learn about the nature of erasing an EPROM with the sun, so he got out an old EPROM and started hacking. (translated link) [TechEkspert] programmed the EPROM with a known pattern of ones and zeros. A pair of 74HC4040 counters would address the entire 32 KB memory of the EPROM. An Arduino Mini read the data out, storing it in an SD card. A bit of python code translated the data to PNG files, which were then combined to render a video.

The whole setup was placed on the roof in full sun. Then the waiting began. Nothing much happened for two weeks. Then some bits started to flicker. This means that sometimes they would read as a 0, and other times a 1. The sun was starting to destroy the stored data. Right at the 3 week mark, all the remaining data quickly started to disappear. In the end the entire chip was erased.

While [TechEkspert’s] chip could be re-programmed, that’s not always the case with EEPROM and flash. Check out this EEPROM killer which calculated how many cycles it took to destroy the electronically erasable storage in an Atmel ATmega328.


Filed under: classic hacks
Hack a Day 14 Sep 12:01

Complex, Beautiful Device is Limited to Text-speak and Cat Pictures (WTF, LOL)

Beautifully documented, modular, and completely open-source, this split flap display project by [JON-A-TRON] uses 3D printing, laser cutting and engraving, and parts anyone can find online to make a device that looks as sharp as it is brilliantly designed. Also, it appears to be a commentary on our modern culture since this beautifully engineered, highly complex device is limited to communicating via three-letter combos and cat pictures (or cat video, if you hold the button down!) As [JON-A-TRON] puts it, “Why use high-resolution, multi-functional devices when you can get back to your industrial revolution roots?” Video is embedded below.

The only limitation is that the device has no way of knowing the state of individual displays, so it’s unable to spell out specific messages – an operator simply holds a button to scroll through letters, and stops when the correct letter is displayed. For a similar project that has serious control hardware (but none of the cheeky commentary) check out this scratch-built alphanumeric split flap display.

[via Adafruit Blog]


Filed under: classic hacks

Arduino-powered roller blinds

Tired of adjusting your blinds depending on outside lighting conditions? YouTuber “Dial” has the solution!

Perhaps you’ve seen hacks where people hook a servo up to blinds to flip them open and shut. If, however, you have the kind of blinds that need to be pulled all the way up to let light in, things become a little more tricky. Dial serves up an incredible solution in the video below, with a servo fixture that holds the balls on a blind’s roll up rope in a setup that could be described as the inverse of how a bicycle sprocket works.

This is interesting enough, but after finding that the rope needed 4x the force that the stepper was capable of, a gear train system was devised using Matthias Wandel’s gear generator. Making it even more impressive, only hand tools were used to complete this build, and it employs an Arduino Uno to automatically raise and lower the blinds depending on lighting conditions.

More info on the project’s parts as well as other useful websites are listed in the video description found here.

Arduino Wiring is the latest addition to Windows 10 IoT Core

Last year, we announced on the blog how Windows became the first Arduino certified OS and introduced Windows Virtual Shields for Arduino and Windows Remote Arduino. Now, engineers at Windows have published a blog post showing how you can use Windows 10 IoT Core to create or port Arduino Wiring sketches that will run on supported IoT Core devices.

The setup and installation steps vary based on what hardware you have, but the resources below can assist with creating/porting Arduino Wiring apps running on Windows 10 IoT Core:

Want to learn more? Read all about it on the Windows blog!

An Arduino charging dock with Edison indicator lights

Bored with normal cell phone charging stations, “Makjosher” decided to make his own with pipe fittings and Edison bulbs.

Makjosher’s charging station resembles a retro-looking light fixture more than a cell phone charger, but it seems to perform both functions quite well. Using an Arduino Uno in conjunction with a current sensor, his charging station senses when a phone is getting “juice” and turns on an Edison bulb to, perhaps, celebrate the occasion. Though it’s shown here being used with an Apple device, there’s no reason a very slightly modified setup couldn’t be used to charge an Android phone, or really any other gadget as needed.

Makjosher gives a pretty good overview of his project in the video below, but if you want more specifics, you can check out his Instructables page 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)

A room light controller with its own light display

Hansi (aka “Natural Nerd”) wasn’t content simply controlling his room’s lighting, so he had his control box illuminate along with it!

In order to control lighting intensity, you could hook up a potentiometer directly, but Hansi decided to instead connect four potentiometers to an Arduino Nano to control an external light source. These four inputs are attached to analog pins on the Arduino, which control a strip of RGB LEDs inside of a partially translucent box. When the knobs are turned, the number of LEDs on display increase or decrease, in different colors depending on which it turned. An external light can then be controlled along with the beautiful controller display.

This Instructable will show you how I made a control panel that has three 12 volt power output ports which can be controlled with knobs at the front. I will be connecting the lighting in my basement to the three outputs, so that it can be controlled through the panel.

The panel has a nice and ambient light pulsation when it’s passive, and when you turn the knobs, the internal light indicates how much the knob is turned, with a separate color for each knob.

Intrigued? You can check out the project’s page on Instructables, and find the Arduino code here.

LipSync is an Arduino-based assistive device for smartphone use

With a mouth-operated joystick and “sip and puff” controls, the LipSync aims to make smartphones more accessible for everyone.

For the huge number of people that use them, smartphones have certainly made their lives easier. Unfortunately, these amazing gadgets are difficult to use for those with limited or nonexistent use of their arms and hands. The LipSync attempts to address this issue with a device that can be made in just over a weekend’s worth of work. It uses an Arduino Micro along with a Bluetooth module for communication, and allows someone to interface with the phone using its tiny joystick, as well as the user’s controlled breath.

Smartphones and other similar mobile devices have become a staple piece of technology in this day and age. For people in wheelchairs whom experience difficulties with gross or fine upper body motor control, the usage of mobile devices can be very challenging. The LipSync is an assistive technology device which is being developed to allow quadriplegics the ability to use touchscreen mobile devices by manipulation a mouth-operated joystick with integrated sip and puff controls.

You can find more information on this project, including the files needed to build one, on its Hackaday.io page.

Simple Clock from Tiny Chip

If you haven’t jumped on the ESP8266 bandwagon yet, it might be a good time to get started. If you can program an Arduino you have pretty much all of the skills you’ll need to get an ESP8266 up and running. And, if you need a good idea for a project to build with one of these WiFi miracle chips, look no further than [Ben Buxton]’s dated, but awesome, NTP clock.

While the ESP8266 started out as an inexpensive, reliable way to get WiFi capability on essentially anything (and paving the way for a plethora of Internet of Things projects), it was quickly hacked to become a fully programmable development board that can stand on its own. To that end, [Ben] has recognized its capability to run a very minimalistic NTP clock. The standard C++/Arduino environment is available, so he didn’t have to learn any new skills. The parts list is stripped down as well: besides the ESP8266, there’s little more than the four-part seven-segment display. There’s even an Arudino library for these chips that [Ben] made great use of. From there, it’s just a matter of wiring it all up and syncing it with an NTP server.

While it’s not the most involved hack ever, it’s good to be reminded that these chips are cheap and readily available for literally anything that you could imagine. If you haven’t started yet, there’s no reason not to. You can use them to control something like an irrigation system, or if you’re even more adventurous, they can run a 3D printer, too.

Thanks [Itay] for the tip!


Filed under: clock hacks
Hack a Day 11 Sep 15:00

EasyEDA RGB5050 LED Scroll Bar

 
 

Guest Post Disclaimer

This is a guest post by the EasyEDA team. I would like to thank EasyEDA for providing this tutorial for everyone to enjoy. All information within this post was provided by EasyEDA.

 
 

Description

None of us could deny the fact that we would love with to play with LED’s and lighting stuff. I love to play with LED’s and create attractive lighting effects. This project was a result of such an attempt where I created a stunning RGB light effect using the popular development platform Arduino Nano. Let’s see the circuit, code and instruction on building this project:

 
 

Image source: EasyEDA

 
 

Arduino Libraries and IDE

No libraries are required for this project. The Arduino IDE can be downloaded from the Arduino website. Here is the download link.

ARDUINO CODE:

 
 

Preparing the LED strips

Cut down the LED strips into 10 single pieces. Make sure you cut them into equal halves and make sure that only the copper conduction plate in the strip is cut. Making a wrong cut disrupts the electrical conductivity between the LED’s. After cutting down into separate strips, you will need to connect each strip using a Dupont wire connectors.

Image source: EasyEDA

 
 

Designing the Control Board

I have made a custom control board that incorporates an Arduino Nano. The control board is used to boost the incoming signal from Arduino and lights up the corresponding LED strips.

 

Image source: EasyEDA

 
 

Control Board Circuit diagram

I used a free Online circuit and PCB designing platform called EasyEDA to develop my control board. It is pretty easy to use especially because of the large library of parts to choose from. Once the design is complete, you have the option to order it through EasyEDA. They offers great prices on custom PCB manufacturing. I have added 10 connection points for 10 LED strips. Each RGB LED strip is controlled by one of the Arduino Nano digital pins.. Transistors Q1,Q2,Q3….Q10 act as a switch for these LED strips for controlling 12V strips via a 5V signal from the Arduino. And switches S1,S2..S4 were added to be able to select the effect on the strip. The schematic can be seen below:

 
 

Schematic

You can access the actual EasyEDA schematic by clicking on the image below:

Image source: EasyEDA

 
 

PCB Board Design

Here is the PCB board design for this project.
You can access the actual EasyEDA design by clicking on the image below.

Image source: EasyEDA

 
 

PCB Fabrication

After completing the PCB design, you can click on the Fabrication icon.

You will then have access to the PCB order page which will allow you to download your PCB Gerber files that can be sent to any manufacturer. However it is a lot easier (and cheaper) to order it directly from EasyEDA.
Here you can select:

  • the number of PCBs you want to order
  • the number of copper layers you need
  • the PCB thickness
  • copper weight
  • and even the PCB color
After you’ve selected all of the options, click “Save to Cart” and complete you order. You will then get your PCBs shipped a few days later.

Image source: EasyEDA

 
 

PCB final product

When I received the PCBs, I am quite impressed with the quality, they are pretty nice.

Image source: EasyEDA

 
 

PCB Build of Materials

Image source: EasyEDA

 
 

PCB connections

Connect the LED strips through the connection points in the board. Make sure that you connect these correctly (push the connectors all the way onto the pin), because the chances of a short increase significantly with the number of wires connected. Once all the connections are done all that left is to install your Arduino Nano (pre-programmed with the Arduino code above), and to power the PCB with a 12V power supply.



 
 

Image source: EasyEDA

 
 

Project Video

 
 

Concluding comments

Hope you like this RGB light effects project, do try it out and post your feedback below.
 
Disclaimer:
This is a guest blog post by the EasyEDA team. All information within this post was provided by EasyEDA.

ScottC 11 Sep 07:09