Posts | Comments

Planet Arduino

Archive for the ‘photoresistor’ Category

As the pandemic rages on, so does the desire to spend the idle hours tinkering. [knaylor1] spent the second UK lockdown making a sweet Theremin-inspired noise machine with a low parts count that looks like a ton of fun.

It works like this: either shine some light on the photocells, cover them up, or find some middle ground between the two. No matter what you do, you’re going to get cool sounds out of this thing.

The photocells behave like potentiometers that are set up in a voltage divider. An Arduino UNO takes readings in from the photocells, does some MIDI math, and sends the serial data to a program called Hairless MIDI, which in turn sends it to Ableton live.

[knaylor1] is using a plugin called TAL Noisemaker on top of that to produce the dulcet acid house tones that you can hear in the video after the break.

If you’ve never played with light-dependent resistors before, do yourself a favor and spend a little bit of that Christmas cash on a variety pack of these things. You don’t even need an Arduino to make noise, you can use them as the pots in an Atari Punk console or make farty square waves with a hex inverting oscillator chip like the CD40106. Our own [Elliot Williams] once devoted an entire column to making chiptunes.

Connecting your shiny new ESP8266 to WiFi can be as simple or as complicated as you please. Most people decide to manually add it. Some people find clever ways to make the bloody thing connect itself. [Eduardo Zola] transfers his WiFi password using the flashing light of a smartphone screen.

A simple photo-resistor and a bit of tinkering allows him to easily send credentials — or any data really — to his ESP8266, through the power of LiFi. Short for Light Fidelity, LiFi transmits data using light with on and off states representing digital values. It can use visible light, or reach into either the ultraviolet or infra-red radiation if need be. For the nitty-gritty details on the subject, check out our primer on LiFi.

 A flashing LCD screen and a photo-resistor barely make the cut for a one-way LiFi system, but [Eduardo Zola] makes it work. The approach is to build a resitor divider and watch an input pin on the ESP for changes.

The trick is to keep ambient light out of the mix. The test sensor shown here places the LDR in a black cap, but [Eduardo] 3D-Printed a slick little enclosure for his reverse flashlight so it fits flush with the phone screen. One click and about half a minute of a flashing screen later, and the Wi-Fi credentials are transferred. This circuit could really be added onto any project, for short data transfers. With a bit more work on the sensor circuit, speed could be improved with the limiting factor being the timing on the phone screen itself.

Since the ESP8266 has its own WiFi connection, it’s likely you’ll use that for data transfer once the LiFi gets it onto the network. But any situation where you don’t have a full user input or a network connection could benefit from this. Pull out that old scrolling LED matrix project and add this as a way to push new messages to the device!

Mar
05

[Carl] recently upgraded his home with a solar panel system. This system compliments the electricity he gets from the grid by filling up a battery bank using free (as in beer) energy from the sun. The system came with a basic meter which really only shows the total amount of electricity the panels produce. [Carl] wanted to get more data out of his system. He managed to build his own monitor using an Arduino.

The trick of this build has to do with how the system works. The panel includes an LED light that blinks 1000 times for each kWh of electricity. [Carl] realized that if he could monitor the rate at which the LED is flashing, he could determine approximately how much energy is being generated at any given moment. We’ve seen similar projects in the past.

Like most people new to a technology, [Carl] built his project up by cobbling together other examples he found online. He started off by using a sketch that was originally designed to calculate the speed of a vehicle by measuring the time it took for the vehicle to pass between two points. [Carl] took this code and modified it to use a single photo resistor to detect the LED. He also built a sort of VU meter using several LEDs. The meter would increase and decrease proportionally to the reading on the electrical meter.

[Carl] continued improving on his system over time. He added an LCD panel so he could not only see the exact current measurement, but also the top measurement from the day. He put all of the electronics in a plastic tub and used a ribbon cable to move the LCD panel to a more convenient location. He also had his friend [Andy] clean up the Arduino code to make it easier for others to use as desired.


Filed under: Arduino Hacks
Dec
17

Tricked-out Arduino-controlled Time-Lapse is More Than Just a Timer

arduino, arduino hacks, camera, digital cameras hacks, Infrared, photoresistor, remote control, servo Comments Off on Tricked-out Arduino-controlled Time-Lapse is More Than Just a Timer 

arduinoPhotoRig

[Hlesliebole] wanted a finer degree of remote control over his time-lapse shots, so he decided to build an Arduino-driven infrared shutter. He ended up creating this killer Arduino-controlled photography rig that does a whole lot more.

This hack was built for [Hlesliebole]‘s Nikon D3100, but he says it should work with any DSLR and remote shutter. This initial build uses an LED as a stand-in for the remote shutter that he ordered.  He intends to update the post once it arrives and he integrates it.

[Hlesliebole] wired a 7-segment display to show the current time delay between photos. This can be set on the fly with a potentiometer, so there’s no need to stop and reprogram the Arduino. And while you’re grabbing a beer and watching the sun slowly sink, the rig can better capture that sunset because of a photoresistor. It detects the ambient light level and minimizes the number of throwaway dark shots.

If that weren’t enough, he’s built servo functionality into the code to support remote control over the camera’s physical position, allowing for panning or rotation over a scene. [Hlesliebole] doesn’t go into detail, but he assures us that there are many tutorials out there.  If you think you’re man enough, you could always work in this outstanding versatile motion dolly hack.


Filed under: Arduino Hacks, digital cameras hacks
Feb
18

Lightefface Makes Music with Both Touch and Light

arduino, music, photoresistor Comments Off on Lightefface Makes Music with Both Touch and Light 

lighteffaceKacper Ziemianin made a simple piano keyboard with an Arduino and some photoresistors. But it's what he does with the data that makes beautiful music.

Read the full article on MAKE



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook