1

So basically I'm working on a project that uses an Atmega328 like on the Arduino Uno. I need to receive both DMX (with max485) and E131 (Not both at the same time, I'll decide which with a boolean in the sketch) and then use that to control 16 channels. I need the TX and RX pins (UART) for the max485 (DMX), 16 outputs for the triacs, and 1 pin for zero-cross detection. If I use the Analog pins as digital outputs, that lets 3 pins to connect the ethernet module. Most of them use 4 pins, I believe it's SPI. I only have 3 available. Is this possible? Also, I may need a second zero-cross detector, so is it possible with 2 pins then? Thanks!

13
  • Sounds like you need either an MCU with more pins or a second MCU for the ethernet.
    – Majenko
    Nov 10 '20 at 17:24
  • Are there ethernet modules that use, say, i2c?
    – Randomaker
    Nov 10 '20 at 17:38
  • did you try to add Ethernet library to your sketch? don't you run out of flash?
    – Juraj
    Nov 10 '20 at 18:00
  • you could use some UART module. esp8266 WiFi module uses Serial.
    – Juraj
    Nov 10 '20 at 18:00
  • No, I havent actually made a sketch yet. Just trying to figure out the hardware side first.
    – Randomaker
    Nov 10 '20 at 18:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.