Author Topic: Arduino to MAX485 (DMX controller)  (Read 3890 times)

0 Members and 1 Guest are viewing this topic.

Offline Nickk2057Topic starter

  • Regular Contributor
  • *
  • Posts: 235
  • Country: us
Arduino to MAX485 (DMX controller)
« on: May 03, 2015, 08:21:08 pm »
i could not find my previous post.... so i had to make a new one. anyways.... am trying to set up a DMX controller with my Arduino board i have here. am having an error code in the compiler.... not sure what it means. could you all help me?

here is what it says.

Arduino: 1.6.0 (Windows 8), Board: "Arduino Uno"

C:\Users\Drawing\AppData\Local\Temp\build3127169777972709416.tmp/core.a(HardwareSerial0.cpp.o): In function `Print':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial0.cpp:48: multiple definition of `__vector_18'
receiver_rev15.cpp.o:/Arduino/receiver_rev15.pde:156: first defined here
collect2: error: ld returned 1 exit status
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
just keep believing in yourself.. you can do some remarkable things in your life when you break through the ice and make things happen with the stuff you make
 

Offline kxenos

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: gr
Re: Arduino to MAX485 (DMX controller)
« Reply #1 on: May 03, 2015, 09:19:46 pm »
Well, can you show us the print statement in line 156?

Also, I think dmx equipment works in 256kbps. Is arduino capable of such baudrate?


edit: so -> show
« Last Edit: May 03, 2015, 09:36:02 pm by kxenos »
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13971
  • Country: gb
    • Mike's Electric Stuff
Re: Arduino to MAX485 (DMX controller)
« Reply #2 on: May 03, 2015, 09:30:30 pm »
Well, can you so us the print statement in line 156?

Also, I think dmx equipment works in 256kbps. Is arduino capable of such baudrate?
DMX is 250kbaud - easy enough on an AVR
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Nickk2057Topic starter

  • Regular Contributor
  • *
  • Posts: 235
  • Country: us
Re: Arduino to MAX485 (DMX controller)
« Reply #3 on: May 03, 2015, 11:42:28 pm »
I really do not know of how to do Arduino stuff honestly. Am still learning of it without any coding. So this is why I am asking for help.
just keep believing in yourself.. you can do some remarkable things in your life when you break through the ice and make things happen with the stuff you make
 

Offline kingofkya

  • Regular Contributor
  • *
  • Posts: 143
  • Country: us
Re: Arduino to MAX485 (DMX controller)
« Reply #4 on: May 04, 2015, 12:05:44 am »
I seam to recall an issue with arduneo and running at high baud rates like dmx i think you have to screw with the interrupt handler to get to working. Your better off starting with a stock avr setup.

Assuming a atmea328 based ardueno.

also try not doing serial prints and see if it compiles.
« Last Edit: May 04, 2015, 12:08:53 am by kingofkya »
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13971
  • Country: gb
    • Mike's Electric Stuff
Re: Arduino to MAX485 (DMX controller)
« Reply #5 on: May 04, 2015, 12:32:32 am »
I seam to recall an issue with arduneo and running at high baud rates like dmx i think you have to screw with the interrupt handler to get to working. Your better off starting with a stock avr setup.

Assuming a atmea328 based ardueno.

also try not doing serial prints and see if it compiles.

250kbaud is only 40uS per byte, 640 clocks, so plenty of time to handle it. Handling the Break condition is something that a standard serial handler will probably not deal with properly but it's pretty straightforward - for receive, framing error = break, for transmit, use a timer to generate the break time. I don't recall offhand if the AVR UART can generate a break, if not you just disable the UART tx function and control the pin directly during the break time.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline kingofkya

  • Regular Contributor
  • *
  • Posts: 143
  • Country: us
Re: Arduino to MAX485 (DMX controller)
« Reply #6 on: May 04, 2015, 09:33:27 pm »
Ah yeah that sounds about right, i haven;t played with normal dmx stream in a while so i was a bit fuzzy:)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf