element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino DMX receiver design - improvements
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 14 replies
  • Answers 6 answers
  • Subscribers 395 subscribers
  • Views 5217 views
  • Users 0 members are here
  • wifi
  • dmx512
  • led strip
  • dmx
  • Arduino Pro Mini
Related

Arduino DMX receiver design - improvements

bytebitten
bytebitten over 8 years ago

I am trying to design an Arduino based DMX receiver for use in a show where we have some custom builds.

In this case; we want to control a LED strip over DMX.

The design has 2 options for control: over DMX or WiFi. The toggle switches between DMX, WiFi or none.

The WiFi will be for debugging/testing of when using at home.

 

For what I found as seen in the image, I have some questions / doubts about some elements:

  • Are the resistors correct? Especially the 68, 22 and 120 Ohms.(one 120 ohm at the end)
  • Will this wiring work for the MAX485?
  • Is it needed to disconnect Rx/Tx prior to flashing new programming on the Arduino?
  • Is the ESP-01 done correct? (improved again in v3)
  • Will the dip-switch work this way? (Arduino sets pinmode input_pullup)
  • Is the 470 Ohm resistor advised for controlling the LED strip? (Seems advised for pin protection with power-on current)

 

Old design v.1:

image

Design v.4:

image

Notes:

  • The Arduino is the 5v version
  • The 470 Ohm resistor goes to the LED strip
  • The LED strip has its own power
  • The toggle2P3T slide switch has the states [Rx+Tx > ESP], [Rx > MAX485, Tx > none], [Rx+Tx > none]
  • The build will be done in phases (LEDs>red>green>blue>yellow) to keep it all working

 

If someone has remarks, improvements or questions; keep 'm coming image

I am still not very experienced in this stuff, but you learn best by doing image

 

Message was edited with v2, v3 and v4 in bold.

v1 replaced for search engines.

  • Sign in to reply
  • Cancel

Top Replies

  • WarrenW
    WarrenW over 8 years ago in reply to bytebitten +1
    The issue with this is that lets assume the internals of the arduino has a resistance to pull up the SINGLE pins. When you connect a SINGLE resistor to MULTIPLE pins how will that interact with the other…
  • c4m4ch0
    c4m4ch0 over 8 years ago +1 suggested
    Ruben, see the following image to see how the voltage divider it is done (1k and 2k resistors).
  • gihu
    0 gihu over 8 years ago

    Hi Ruben,

     

    Are all the components in the module? Including both connectors? If so,I would not place the 120ohm resistor in that way, I would connect the connectors 1-1, 2-2, 3-3, the 120 resitor conected pin2-resistor-pin3, and it would be posible to disconect it, then I would place the 22ohm resistor, conector pin2-resistor-B, connector pin3-resistor-A.

     

    About the ESP-01, I think it works at 3v3, so for the Rx it should be place a voltage divider, its seems it is not well wired in the schematic.

     

    Also I would use different pins instead a toggle, so different UARTs in the Arduino, one for the 485, and another for the ESP, then with a toggle connected to digital input, you can switch to decide which UART to use (by software).

     

    Hope to be usefull, regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • WarrenW
    0 WarrenW over 8 years ago

    I would have thought that the dip switch would require individual pull down resistors for each leg of the switch. It may be the drawing has been simplified and it should have read 10K x 8 array.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • bytebitten
    0 bytebitten over 8 years ago in reply to gihu

    For the DMX; I will check what resistors are excessive. From your answer I get some are.

     

    For the ESP-01; the Rx/Tx from 5v>3.3v needs a divider; that is where the 1K and 2K are for.

    But 3.3v>5v is compatible as they both have the same thresholds (where 2.4+v registers as up/1, if I'm correct).

     

    The UART pins would work, but from what I read these needs to be disconnected if reprogramming the Arduino. I want to do that without taking it all appart.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bytebitten
    0 bytebitten over 8 years ago in reply to WarrenW

    As to what I can find, resistors per pin;

    - is used with LEDs

    - is used with 5v for single pin read

     

    Even https://arduino.cc/en/Tutorial/InputPullupSerial shows a schematic without resistors at all.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • WarrenW
    0 WarrenW over 8 years ago in reply to bytebitten

    The issue with this is that lets assume the internals of the arduino has a resistance to pull up the SINGLE pins. When you connect a SINGLE resistor to MULTIPLE pins how will that interact with the other pins?

    I cannot confirm that this is the case as my arduinos are at home at the moment.

    Based on past experience with multi dip switched inputs it is always a good practice to individually apply resistors so not interaction can occur.

    Cheers

    Warren.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • WarrenW
    0 WarrenW over 8 years ago in reply to bytebitten

    Alternatively since you are pulling down inputs - omit the pull down resistor and go straight to ground with the common line of the dip switch array.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • c4m4ch0
    0 c4m4ch0 over 8 years ago in reply to bytebitten

    The 1k and 2k resistors are connected in series and you should use a N-type transistor to control the LED strip.

    Maybe you will need a pullup resistor on the ESP reset pin but I'm not sure.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • COMPACT
    0 COMPACT over 8 years ago

    Will this light up our lives?

     

    Approach this project slowly to understand each portion - Don't wire everything up in one foul swoop and expect it to work instantly.

    Try working on LED bar first

    Then the ESP-01 connection (But not WIFI connection just yet.)

    And finally the DMX portion.

     

    To get the LED bar working you'll have to ask yourself these questions.

    How much power does the LED bar draw?

    What are its voltage requirements?

    How do you control it.

     

    From that you progress and get it working.

     

    Have a look at some of my Element 14 blogs for my approach to getting things to work.

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gihu
    0 gihu over 8 years ago in reply to bytebitten

    Hi Ruben,

     

    1k and 2k resistor are not well connected to act as a voltage divider. 1K resistor shuold connect (in your drawing) toggle and ESP(Rx pin), and 2K resistor should connect ESP (Rx pin) to GND.

     

    Hope that helps,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gihu
    0 gihu over 8 years ago in reply to bytebitten

    Also you can avoid the 10K resistor in between dip-switch and GND, and connect it directly, then the inputs shuold be configures as digital input with internal pull-up

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube