Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / EEPROM Writing/Reading Bits at a time on: July 19, 2013, 05:35:46 am
Hi All,
I'm trying to make a music sequencer using bits as steps (16 bits aka 2bytes per pattern) stored in EEPROM.

I'm curious if there is a way to read/write individual EEPROM bits without having to read the entire byte and bitRead from that.

Any words of wisdom would be greatly appreciated!
2  Using Arduino / Project Guidance / Re: Shifting in and out on shared pins? on: October 13, 2011, 10:33:06 am
Thanks Dc, but shifting seems a better option to muxing for digital.
In my case I'm currently using only 5 pins for up to 128 ins and outs (shared clock lines).
3  Using Arduino / Project Guidance / Re: Shifting in and out on shared pins? on: October 13, 2011, 04:48:07 am
4  Using Arduino / Project Guidance / Shifting in and out on shared pins? on: October 12, 2011, 02:16:03 pm

I'm trying to save as many pins as possible and will be using the shift in (cd4021) and shift out (74hc595) tutorials for buttons and leds.

I'm wondering if it's possible to save acouple more pins by sharing the clock lines between shift registers and possibly the data lines. I'm guessing this should work if IN and OUT have separate latch pins but I'm far from my arduino so can't try it out yet.

Anybody tried this?
5  Using Arduino / Sensors / Re: circuit for IR filter/demodulation? on: August 06, 2011, 01:44:25 pm
Thanks for your responses Johnwasser, Grumpy_Mike!

John, I did try reading on/off but still too much interference to get a reliable reading.

Grumpy, how slow of a response are we looking at? I can settle with a delay of up 1/4 second.

6  Using Arduino / Sensors / circuit for IR filter/demodulation? on: July 30, 2011, 02:49:02 pm
I'm designing a multi-touch panel using  39 pairs of 3mm IR led emitters + photo-transistors arranged as per this drawing:

It works perfectly in dust/dark situations but as expected - any ambient light turns it into a random generator  smiley-razz

I know the obvious solution would be to replace my cheap IR photo-transistors with proper IR modules and modulate the Leds @40khz...

But with 39 sensors, it isn't going to be cheap. I'm currently taking 3 readings at once using 3 4067 multiplexers so I'm wondering if I couldn't use an IR filter/demodulator circuit and simply multiplex the leds into that. it would save a ton of cash and soldering.
I was considering taking a sharp sensor's eyes out and multiplexing my leds into it's sockets but maybe there is a more elegant way to achieve this.
Is there maybe an IC that can do this? I know most IR modules output HIGH/LOW logic but an analog reading would be heavenly for eventual threshold calibration etc...

Many thanks in advance for your advice! smiley
7  Using Arduino / Sensors / Re: Trying to optimise my analogRead for steadier Readings (7BIT) on: April 17, 2011, 04:22:40 pm
Thanks RG!

I will try some averaging and see how it goes.

Congrats on the 707, fantastic work I have to say!
8  Using Arduino / Sensors / Trying to optimise my analogRead for steadier Readings (7BIT) on: April 17, 2011, 02:18:47 pm
I'm building a midi controller with a couple dozen 10k linear pots using 2 4067 multiplexers.

 I'm currently using:

Although stability isn't not terrible, I'm still getting +/-1 oscillations when some of the pots are in mid travel. Unnoticeable during performance but I real pain when the knobs fight each-other when the computer is in "learn" mode.

Midi CC only requires 7BIT resolution so I'm wondering if there is a way to lower the ADC's resolution to 7BIT since I'm trashing the resolution anyway with the Map function.

Thanks in advance for any insight.

9  Using Arduino / General Electronics / Re: simple/reliable 48 channel relay? on: April 16, 2011, 03:32:08 pm
Thanks, lefty
I'll have a search
10  Using Arduino / General Electronics / simple/reliable 48 channel relay? on: April 16, 2011, 12:25:00 pm
I have two pairs of 24pin chips that manage my car's fuel system in different ways - stock and performance.

I'm wondering if their is a reliable/simple way to switch between the 2 pairs electronically so I don't have to take my car apart to change the fuel management system.

I'm picturing a little pcb with the 4 chips and 2 outputs, with a switch to toggle between both modes.

48 relays is an option be feels overkill to me. i'm wondering if their is some kind of switching IC you could recommend.


11  Using Arduino / LEDs and Multiplexing / Re: multiplexing Ir sensors. would this plan work? on: April 01, 2011, 01:30:52 pm
Hi MarkT,

Thanks for your insight! I used a 10k trimpot to find the sensitivity "g spot" which turned out to be 3.4k in my case.

I did some thinking which lead to Plan B :

What if I used a 4067 to multiplex GND to each pair, one at a time, would that work?

I only have 3 analog pins left for IR but I can always multiplex the groups with another 4067 I guess...

12  Using Arduino / LEDs and Multiplexing / multiplexing Ir sensors. would this plan work? on: March 31, 2011, 03:38:41 pm
I've been using the following schematic to use an IR Led and photo-detector transistor for my touch panel (sorry about the bad drawing):

This is a cheap alternative to proximity sensors and works great for finger detection on my Plexiglas panel.

Now I have a project that requires 42 "touch" areas and I'm trying to figure out the simplest way to multiplex them.
My plan (below) is to use shift registers to turn on each IR led one at a time, and take a reading from the respective photo-detectors:

would it be safe to hook all the transistors together or should I power them one at a time also?

I'm still an electronics novice and not sure whether photo-transistors consume power at all.
I don't mind soldering an extra bunch of shift registers if I have to, but I figured the experts might have a better plan to share smiley-wink

Again, sorry about the foggy explanation/schemo and many thanks for any insight!

13  Using Arduino / Sensors / Re: Which potentiometer to use with internal pull up? on: March 12, 2011, 03:00:50 am
They are 20k as stated in my first post smiley
14  Using Arduino / Microcontrollers / Can several microcontrolers share the same crystal? on: March 12, 2011, 02:57:05 am

I'm planning a synthesizer project using 5 atmega168 (4 voices and controller)

I'm curious to know if all 5 could share the same Crystal

15  Using Arduino / Sensors / Re: Which potentiometer to use with internal pull up? on: March 07, 2011, 01:50:30 am
Right now, with a 10k linear pot, analogRead gives me a range of 12 to 238. (I don't have other pots to play with) I'll stick with the standard 3 pin wiring and stop trying to cut corners  smiley-wink

Pages: [1] 2