Click These:

Wednesday, December 24, 2014

Wireless Midi Controller - Prototype 2

I wrote on here a while ago about wanting to turn a tv remote into a MIDI controller using an arduino and an Infra-red receiver component...

i came up with a new idea... how about making a midi controller out of a tv remote... but making the receiver really badass looking too...

so, i decided i would create an all new version of the project...
i wanted it to have alot of lights in the receiver so that there is some visual feedback for when buttons are pressed, as well as giving an indication of the values of midi parameters...

i rigged up some digital shift registers in a daisy chain and hooked the outputs up to RGB LEDs, and installed a library written by Elco Jacobs that allows me to pulse width modulate however many outputs i need through the shift registers... so, in laymans terms, i could control however many lights i need individually, and mix any color and brightness...

you can find more info about the ShiftPWM library here

... the thought of having a really trippy looking lit up pyramid that helps me make music seemed pretty appealing to me...so i set to work on it...

at first i made the design out of a Krave cereal box... i made a basic shield for the project and starting soldering together the shift registers... i got the whole thing wired up with 2 RGB LEDs (because thats all that will fit on one shift register alone) and when i uploaded the code, the lights and the shift registers were not working right... all the lights would light up whenever just one was supposed to...

i kept going over the code again and again, looking for problems with the soldering... but just couldn't find anything wrong... eventually i decided to go without having a whole bunch of tri color LEDs, and that it would be simpler to just do 2 RGB LEDs using the arduino's 6 digital PWM outputs...

...but then i thought, what if i use the arduino mega that has been sitting on my shelf doing nothing?... it has 12 digital PWM outputs built in already, and i started finding code online for making other digital pins produce pwm...i could get up to about 54 digital pwm outputs from the mega, and maybe by using the anolog outputs too... i could get another 16...

still though, thats only 70 outputs and thats only enough to control 23 RGB LEDs at the most...

i ended up opting to go the simpler route of just doing the two RGB LEDs with the arduino uno's built in digital PWM... just to save time...

i installed this into the cardboard pyramid i had made and once i had the arduino, the IR receiver and the RGB LEDS in place, i put a cardboard stencil i had made on the outside and taped a layer of paper around it tightly, creating a white minimalist pyramid...

i started coding it to light up the way i wanted it to, and when i got it working and ready to start programming the IR signals and midi functionality, i realized that the remote i had bought was not ideal... and that if i wrote code around the current remote i would probably just have to rewrite alot of code later on...

so far its only functional as a light fixture in the corner of my room... but i have big plans for this pyramid... stay tuned to see how it turns out...

thanks for reading. subscribe and comment please. suggestions and feedback appreciated.

Saturday, May 10, 2014

Garden Watering System Using Arduino and 595 Shift Registers

hey everyone, i just wanted to write about a project i've been working on recently...

a while ago, I was inspired by the 'Garden Arduino' project i found on Make.com and Instructables.com

http://www.instructables.com/id/Garduino-Gardening-Arduino/

http://makezine.com/projects/make-18/garduino-geek-gardening/

upon reading about this project, i quickly set to building it... at first i didn't have a water pump to hook up to the circuit, so i plugged in the nearest thing i could find instead... i ended up having a plant that was controlling my lava lamp. whenever it needed water, it would kick on the lamp... i would water the plant, the lava lamp would turn off until the plant needed water again. this alone was pretty cool...

eventually i got a small water pump, enough to deliver a little trickle of water to a plant, i think i pulled it out of a small garden fountain type thing... i replaced my lava lamp with a water pump and VOILA! self watering plant.

at this point, my plant started doing pretty nicely, but family members were concerned about the high voltage electrical equipment being around water like that... (the circuit for the project requires relays that control 120 volt AC current - potentially very dangerous when mixed with water) anyway, long story short, i decided to take apart the project due to the concerns that were raised by those around me. everyone slept more soundly knowing that there was less potential for some sort of electrical fire or something caused by a water spill or a bare wire, etc...

even though i ended up taking it apart, i never put the project completely out of my mind... i thought to myself that i'd like to build that project again, except even BETTER...

i thought about how things were with that project and how i might do it differently... for instance...

-using a water pump that actually has some decent pressure...

-detecting the moisture level for the soil separately  for each plant and then be able to route water to exactly the plant that needs it...

-LCD display for showing sensor readings and other info.

-some way to interact with the garden controller after uploading, so that you can change variables manually such as watering time, minimum soil moisture level that triggers watering, how many plants are hooked up to controller, which plants are actively being watered or are suspended from watering for maintenance or other reasons, etc...

-use 9volt or 12 volt solenoids and pump so that there is much less danger of between the water and the electrical circuits.

...i put this project on the backburner for quite a while, but for the last few months i had been researching and making strategic purchases with this project in mind... acquiring some 595 shift registers for the specific purpose of expanding my digital outputs for controlling relays that would eventually be hooked up to solenoids and a water pump...

i decided to use half of the shift register outputs for controlling the relay bank (pump, solenoids), and the other half for controlling which plant soil moisture sensor is active.

so far i've gotten a better pump, some solenoids, water lines, water line connectors and adapters, duct tape, electrical wire, shift registers, analog multiplexers, LEDs, resistors, some galvanized nails, an LCD screen,  9v and 12v DC adapters, electrical tape, solder...

i'm starting to get things arranged and things are finally coming together really nicely. in my next post i'll write up how i'm building it, show some schematics and the code i wrote to get it all working, and offer ideas for other things i might be able to add to it, or other ways to enhance it.

thanks for reading. subscribe and comment please. suggestions and feedback appreciated.