|
6556
|
Forum 2005-2010 (read only) / Interfacing / Re: 3 way Switch + servo= routing audio?
|
on: July 30, 2010, 06:20:49 pm
|
i really need a way to route audio - with an arduino The fundamental requirement of CCrooked was as above, using a servo etc would be fun and that's fair enough, but it's not the best way to do it. As mentioned relays are the simplest and arguably the best way, special audio switching chips come equal first probably, but for a one-off home project just get a relay, write 5 lines of code and job done. Use a latching relay and you don't even have to constantly hold the current with the Arduino pin.
|
|
|
|
|
6557
|
Forum 2005-2010 (read only) / Interfacing / Re: controlling a potentiometer with arduino
|
on: July 30, 2010, 11:35:18 pm
|
Is it possible to remove the knob and do that function with the arduino? Sure, remove the knob from the device and the Atmega328 from the Arduino. Then glue the 328 to the pot shaft, pins down so it's more comfortable to grasp.  Sorry, couldn't resist. As mentioned you could use a servo although it's very difficult to imagine why you would, unless you want to simulate those cool mixing decks where the manual controls move by themselves.
|
|
|
|
|
6559
|
Forum 2005-2010 (read only) / Interfacing / Re: Interfacing multiple arduinos over a long distance
|
on: July 28, 2010, 12:25:55 am
|
|
RS485 will do 75' easily depending on the bit rate and you have two wires for it. So you could multi-drop all the Arduinos and come up with a protocol, normally this would mean a master that polls the slaves. 485 should not be used in a star topology, it should be a bus with short "stubs" to each node. It also needs line termination.
LIN transceivers only need 1 wire and are rated at 40m but should do better. LIN is not balanced but still very noise immune.
I2C is not intended for long runs like that but I don't know much about it, with drivers and/or slower rates it would probably work.
Whatever you do, if the application is important you'll have to come up with a protocol to handle errors etc. That's the hard part.
Wireless has it's place but a wire is always more reliable and cheaper if you have access to run the lines.
|
|
|
|
|
6565
|
Forum 2005-2010 (read only) / Interfacing / Re: Can I run the 328 chip without the ardunio board?
|
on: July 22, 2010, 10:25:07 am
|
I will be needing to use the ADC and PWM outputs, so if I need additional support components for those operations, I would appreciate any advice on that as well. In general no special handling of any IO is required it you're just dicking around on a breadboard. Inputs like ADCs will need the voltage reduced if > 5v. Outputs will need buffering (say with a transistor) if driving something too heavy for the 328, ie > 20mA.
|
|
|
|
|
6567
|
Forum 2005-2010 (read only) / Interfacing / Re: Multiple Shiftregisters
|
on: July 21, 2010, 06:49:58 pm
|
I could not find anyting concerning a serial input in the datasheet.
DSA and DSB are your serial inputs. Does this chip support this function?
It better, it's a serial in shift register  And if it does, when I connect it to Q7 not Q4, will it work? Yep. Note that this SR does not latch the data, so as you are shifting your bits in they will ripple through all the outputs, this is not normally desirable, your displays will flicker all over the place when you update. If you are updating regularly this may make the display unreadable.
|
|
|
|
|
6570
|
Forum 2005-2010 (read only) / Interfacing / Re: Two wire serial bus for range 20-30m?
|
on: July 13, 2010, 01:46:12 am
|
If the bus error persists however (e.g. a client pulls SDA low) communication may still not be possible It's a totally different protocol but that's why some LIN transceivers force the Tx line to a recessive level after a certain amount of time, regardless of what the local uC is transmitting.
|
|
|
|
|