So nem 8 Bit Register kann man nicht einfach ne Baudrate zuordnen (und schon gar nicht Fließkomma)... da steckt mehr dahinter...
Hier ist der Rechner dafür:
So nem 8 Bit Register kann man nicht einfach ne Baudrate zuordnen (und schon gar nicht Fließkomma)... da steckt mehr dahinter...
Hier ist der Rechner dafür:
@Counterfeiter
ok. damit komme ich für 230.4 k auf einen Wert von 8.
Das Trage ich also in der Arduino Firmware ein.
was immer noch nicht zur Steuerung der LEDs führt.
Ist mein Arduino Kaputt?! Das RX Lämpchen blinkt doch.
Also bekommt er schonmal Input.
Bie 16 MHz? Hast du das double speed bit gesetzt? Also U2X = 1 ?
3,5 % Fehler ist schon sehr viel... nimm eine andere (dann wohl kleinere) Baudrate !
Im Sketch sowie auch in Glediator sind 1Mbit eingestellt!
Hab noch etwas rum getestet bis 600 Pixel läuft Glediator mit konstant 25 FPS.
Gibt es ein maximale länge für den SPI Bus? habe nirgens Längenangaben gefunden.
@Counterfeiter
Ja du hast recht solange kein Output bei Glediator gewählt ist werden die geforderten 25 FPS angezeigt.
Startet man dann die Ausgabe berechnet Glediator die Frames je nachdem wie sie weggeschaufelt werden können.
Somit bleiben mir jetzt nicht mehr allzu viele Möglichkeiten.
Idee: Pixel Controller von Sandives über Artnet Vorteil Wlan/Netzwerk soll auch 2040 Pixel ansteuern können die Frage ist natürlich bei welcher Framerate.Und das wichtigste ich kann Glediator weiter nutzen!!
http://www.sandevices.com/E6804Info.html
Oder doch auf die Umsetzterboards warten die sollen meines wissens ja auch SPI (ws2801) unterstützen wobei ich nicht weiß was an Pixeln unterstützt wird.
Für Ideen bin ich offen wenn jemand Alternativen hat gerne her damit.
Still trying to get this working on my Sainsmart Mega 2560.
Let me make sure Im using Glediator correctly. In output, i select my com port (Com4) and baudrate 1000000. I select serial open and then apply/done. The Rx light is blinking on my board. In Glediator, i have a scene running. I have added to the playlist with defaults. I select Play Playlist. No output. I am on port 28 which is PA6. PORTA, DDRA, PIN 6. I have tried disabling the auto-reset with a resistor between 5v and reset pins so i dont have to cut anything.
Am I using Glediator and the code correctly? Like I said, I have used Minotor with their LEDUINO code and it works fine! I would really like to use Glediator though as there is much more I can do with it..
Thanks for your help !!
sorry, I left out that detail. I will be using ws2811 strips at 12v. I have data connected to the output port, an external 12v power and also connected to ground on the board. the strips work fine with all the fastLED implementations. I did not see any output with this sketch, so I put a single LED with resistor on the output port and ground just to see if any data was going to that port. Is that a bad test?
Basti hat recht, die 3.5% Fehler sind grenzwertig! Trag mal bitte in der FW eine 16 ein und dann stell die Baudrate in Glediator auf 115200.
@gpoduska
I'am not really getting your problem. Obviously you are using a china-clone MEGA? I have no idea how the auto-reset function is implemented on that guy!? But I guess that a resistor between RST and 5V will not disable the auto-reset, at least not on an original MEGA. Further I have serious doubt whether a stipe of WS2811 should be powered by 12V! Never heard about a version of these guys working with more than 6V!? So do you have some more information?
LG,
Pepe
also:
// Initialize UART
UCSR0A |= (1<<U2X0);
UCSR0B |= (1<<RXEN0) | (1<<TXEN0) | (1<<RXCIE0);
UCSR0C |= (1<<UCSZ01) | (1<<UCSZ00) ;
UBRR0H = 0;
UBRR0L = 16; //Baud Rate 1 MBit (at F_CPU = 16MHz)
...
ich habs probiert. meine LEDs leuchten immer noch nicht.
solangsam glaube ich echt mein board ist kaputt.
Dann bist du bei 2.1% Fehler.. Wenn du den Double Speed Modus benutzt, wird die Fehlererkennung schlechter... ich glaub da sind so +- 1,5% max empfohlen...
Nimm einfach eine niedrigere Baudrate mit sehr wenig Fehler. Für 64 LEDs brauchst du auch gar nicht viel Geschwindigkeit... 64 LEDs *3 Farben * 10 Bit * 25 FPS = X Baud
Ansonsten würde sagen... löt dir einen Baudratenquarz auf... ich weiß nicht wie das bei Arduino ist... ob die Libs sich immer auf die 16 MHz beziehen wollen...
I am using a Sainsmart Mega 2560 R3 clone. I haven't had any issues yet with compatibility. My problem is simple. I open my serial connection at 1000000 baud. The RX light flashes on my board. Now, in Glediator, I select start playlist but nothing is output of my port. I have a single LED connected to that port just for troubleshooting to see if anything is sent to it. It does not flash at all. I have tried many ports from PortA thru PortD Am I using Glediator correctly as I am new? I open the serial and add a scene to the playlist and hit play... Is this correct?
To add, When I get this working, I will be driving a matrix of ws2811 strips at 12v. These are 12v as printed on the strip itself.
And again I have to ask:
1. Did you set the correct number of Pixels in the sketch
2. Did you upload the sketch to the MEGA?
Once the RX-LED on you board is blinking from Glediator's side everything is fine. So the point must be the Sketch. It is very important that the Num_Pixels within the sketch is exactly the same as the size of your matrix adjusted in Glediator!
Cheers,
Pepe
My appologies, i thought you replying to the other person's issue...
Yes, I am using:
# Define DATA_PORT PORTC
# define DATA_DDR DDRC
# define DATA_PIN 6
# define NUMBER_OF_PIXELS 144
My problem is that nothing is being sent to the the pin 31 (on Mega port c pin 6). To troubleshoot, I have 1 led on pin 31 to see any data at all.. I am not worried about the matrix yet. I should see the led blink when data is sent to pin 31. I see nothing. I tried the matrix saw nothing, so i installed a single LED to troubleshoot. On the Mega, it uses the 16U2 chip and not the 8U2. Could this be the problem?
Have you clearly disabled auto-reset?
bin jetzt zunächst mal auf raspberry pi umgestiegen. Mal schauen wann ich an die Ola Grenzen komme. dann versuch ichs vll nochmal mit Arduino Mega.
Danke aber schon mal für den Support.
WOW! I got it working! Thanks Pepe. Here is what I did to get the code working on my Arduino Mega 2560 with Glediator:
1) The interrupt vector in the code is for an Arduino Uno (ISR (USART_RX_vect). Changed to ISR (USART0_RX_vect) for the Mega 2560
2) Change the char variable 'go' to a boolean. Why this worked, not sure.
3) Removed the auto-reset on the Mega board by removing the trace on the board. If I need to load new code, I simply bridge the pads with a wire.
Now.. for the fun !!
Thanks Again !
Guten Morgen allerseits.
Da ich den UIB frisch bekommen habe und mit Lichtprotokolle noch keine so große Ahnung habe bräuchte ich eine kleine Einweisung/Hilfe für das Patchen von Artnet und TMP2.net. Ich kenne das Grundprenzip von DMX.
Ich habe 4x 8x16Pixel Boards, die Boards sind nebeneinander, Board Einreihung also x=4 und y=1, ist also 32x16 pixel, Genutzt wird dann jeweils pro Board die Matrix Boards. Vertical linewise
Egal was ich in Glediator einstelle Kommt das Ergebnis nicht korrekt rüber. Liegt das an den Patcher? Wie funktioniert das mit den Universen?
Kannst Du mal bitte einen Screen Shot von Deinem Option Window machen und hier reinstellen. Das macht es leichter Dir zu helfen.
LG,
Pepe