Go Down

Topic: Can Arduino control multiple devices? (Read 1 time) previous topic - next topic

geniusarvin

Oct 10, 2015, 03:38 am Last Edit: Oct 10, 2015, 03:40 am by geniusarvin
is arduino support the 2 devices like volume of the speaker and power outlet? pls help me to answer this.

DrAzzy

Almost certainly - you've got 20 IO pins to control, and 32k of flash space to fit the code into, 2k of RAM - that's almost always enough to control well over two devices. It of course depends on how the interface with those device you're controlling works, as well as how the Arduino gets told to do it's thing.


Right now your question is really really vague. What kind of power outlet? Mains voltage or low voltage DC? You have to be extremely careful with mains voltage, since it can cause serious damage to persons or property.

What kind of volume control? How is it controlled now?

How does the arduino decide to when to switch the power or change the volume?

I often use much smaller (fewer pins, less memory) arduino-compatible chips than the ones in the official boards to control multiple devices each.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

OldSteve

I often use much smaller (fewer pins, less memory) arduino-compatible chips than the ones in the official boards to control multiple devices each.
DrAzzy, I've used 8-pin PIC12F509 chips for this in the past, prior to starting with Arduino, (I'm a newbie to Arduino), but would be interested in an example or two of small Arduino-compatible chips if you don't mind. I'd like to check them out.
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

DrAzzy

DrAzzy, I've used 8-pin PIC12F509 chips for this in the past, prior to starting with Arduino, (I'm a newbie to Arduino), but would be interested in an example or two of small Arduino-compatible chips if you don't mind. I'd like to check them out.
In referring to the Attiny series, like the ones the cores I maintain (in Sig) support...
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

OldSteve

In referring to the Attiny series, like the ones the cores I maintain (in Sig) support...
Thank you for that. Exactly the type of thing I was thinking of, but a lot more guts than the PIC12F509 that I usually use. Even a 4-channel ADC, I see. I'll have to buy a few. (And learn how to program them etc.)
I'd heard of the ATtiny, but didn't realise it used an 8-pin chip.
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

Go Up