Increase the number of digital pins
There are many post that explain how to use more than just the standard pins on the various arduinos but none of them explain the limitations and the proplems properly.
Arduino Uno:
1.You can use the analog pins
Pin 14 = Analog in 0
Pin 15 = Analog in 1
Pin 16 = Analog in 2
Pin 17 = Analog in 3
Pin 18 = Analog in 4
Pin 19 = Analog in 5
digitalWrite(14,HIGH);
or
digitalWrite(A0,HIGH);
2.You can't use both SDA , SCL & A4 , A5 as they are basically the same (18,19).
3.You can also use the TX/RX.
"Don't do it, you break the serial communication..."
"Never use pins 0 and 1"
"you can't use the TX/Rx Pins"
You can... but you need to take precautions. Which ones?
It should have software serial over USB, right?
Or do i break the USB serial?
Are there internal Chip problems if i use TX/RX?
As i use those TX/RX pins in the code i probably should not use Serial.print()
?
What happens if i forget to remove Serial.print()
after uploading the code that use pins 0,1?
How to hardware reset the arduino/bootloader if something goes wrong?
As there are various other Arduino's that use different chips, is the above valid for all Atmel chips?
So, what shuold i know before using those TX/RX or also maybe the other analog pins?
There are cheap shiftregisters, pwm drivers, led drivers, spi, i2c and more ic's to expand your I/O
But if there are not to big problems it means that the arduino has 20 I/O pins...
You could theoretically control:
17x3 = 51 = 17 RGB leds (multiplexing, pwm sourcing&sinking);
14x6 = 84 leds (multiplexing, pwm on 6 rows/colums );
10x10 = 100 leds (multiplexing, high low);
20x(20-1) = 380 leds (charlieplexing, high low);
// yes it would flicker
Correct me if i'm wrong. That means you are able to control 380 "Whatever" using diodes and one arduino.