Page 1 of 1

Please verify this can actually be done...

Posted: Mon Mar 14, 2016 11:28 pm
by KirksRPI
Hi All,

Ive been working on a project for a few weeks and i cant seem to find the information i need to get this to work...maybe im missing it, and its a lot simpler than it seems...but if someone could please verify that this is actually possible, it would make me feel a LOT better...

I am designing an electric game board, where a photo resistor senses when a puck passes over it, telling a raspberry pi to flash an LED, play a sound clip, and add a numerical value (by ones) to an overall score. Each time a photoresistor is triggered, the score counts on until it maxes out, or the reset button is pressed.

I have already figured out the python code for the above (using Wyliodrin Visual Programming)...the score is currently being displayed on the "screen" of my computer, but i WANT it to display on a 16x32 LED dot matrix board.

I have an LED DMD hooked up to an arduino uno board (which is also driving the photo resistors and reset button)...When just the arduino is plugged into my computer's USB, I can get it to run demo scripts through the arduino IDE, but i cant figure out how to have the RPi/Python script drive what is shown on the DMD display...

The DMD board should show exactly what is being shown on the computer screen when running the python script...

also, is there a scripting difference if using an RGB DMD board, vs a single color LED DMD board?

Here is what i am working with:
Mac Powerbook
Raspberry Pi 2 Model B
Arduino Uno
Wyliodrin Visual Programming
Arduino IDE
16x32 Red LED DMD

Please let me know if you guys need any further information, or questions.
Thanks!
Kirk

Re: Please verify this can actually be done...

Posted: Mon Mar 14, 2016 11:33 pm
by asandford
We'll need more info about the 16x32 Red LED DMD

Re: Please verify this can actually be done...

Posted: Mon Mar 14, 2016 11:43 pm
by KirksRPI
sure, what info do you need? Its actually something i got from a garage sale, so im not too sure about exact specs on it...the back of the board has printed: P10(1R)-V701B-3

Does that help?

Re: Please verify this can actually be done...

Posted: Mon Mar 14, 2016 11:45 pm
by KirksRPI
http://www.weiku.com/products/13926332/ ... odule.html

this looks like a splitting image (down to the direction of the pcb board) and everything...so these specs might be accurate?

Re: Please verify this can actually be done...

Posted: Mon Mar 14, 2016 11:50 pm
by asandford
KirksRPI wrote:sure, what info do you need? Its actually something i got from a garage sale, so im not too sure about exact specs on it...the back of the board has printed: P10(1R)-V701B-3

Does that help?
You have it working with an Arduino?, and if so, where did you get the code from?

Re: Please verify this can actually be done...

Posted: Mon Mar 14, 2016 11:54 pm
by toxibunny

Re: Please verify this can actually be done...

Posted: Tue Mar 15, 2016 3:12 am
by toxibunny
It should definitely be possible. You're going to have to get more into the nuts and bolts of programming for it though, and it'll be wired up slightly differently, and yes, the script would be different depending on whether it would be a single-colour panel or RGB...

I definitely wouldn't wire one of these directly to my pi. I'd say there's a reasonable chance of burning out a gpio or two if you connect it directly without some sort of buffer IC.

here's an arduino-relevant page with a pinout and more info : https://forum.arduino.cc/index.php?topic=260320.0

I can't really help more, but hopefully I've at least started the ball rolling. Please read my sig.

Re: Please verify this can actually be done...

Posted: Tue Mar 15, 2016 3:54 pm
by KirksRPI
asandford wrote:
KirksRPI wrote:sure, what info do you need? Its actually something i got from a garage sale, so im not too sure about exact specs on it...the back of the board has printed: P10(1R)-V701B-3

Does that help?
You have it working with an Arduino?, and if so, where did you get the code from?

i got the script from:
http://www.freetronics.com.au/pages/usi ... ugvlvkrLRY

i can play the demos, and alter the text that shows by manually changing it in the script, but i want it to display what the python shows...

Re: Please verify this can actually be done...

Posted: Tue Mar 15, 2016 3:54 pm
by KirksRPI
yup, this was a very helpful site...i didnt get my board from them, but it seems to be compatible.

Thanks!

Re: Please verify this can actually be done...

Posted: Tue Mar 15, 2016 3:57 pm
by KirksRPI
Thanks for the help everyone...i think what im really looking for is a block of script or something that basically says:

pull value "X" from python script ____
display value "X" onto DMD board _____ via arduino uno

is there something like that?

Re: Please verify this can actually be done...

Posted: Wed Mar 16, 2016 12:38 am
by asandford
KirksRPI wrote:Thanks for the help everyone...i think what im really looking for is a block of script or something that basically says:

pull value "X" from python script ____
display value "X" onto DMD board _____ via arduino uno

is there something like that?
The board has inbuilt controller and data is clocked in over SPI (which the Pi has), so it would appear to be achievable.

The only problem might be timing; the code is using a 4MHz SPI clock rate, and I'm not sure the Pi can go the fast.

The rest of the code creates a 'frame buffer', builds a picture in it and sends it to the display, nothing Arduino specific.

Best to ask the Mods to move this to a more appropriate sub-forum where the likes of Joan will see it.

Re: Please verify this can actually be done...

Posted: Wed Mar 16, 2016 2:59 am
by toxibunny
asandford wrote:
KirksRPI wrote:Thanks for the help everyone...i think what im really looking for is a block of script or something that basically says:

pull value "X" from python script ____
display value "X" onto DMD board _____ via arduino uno

is there something like that?
The board has inbuilt controller and data is clocked in over SPI (which the Pi has), so it would appear to be achievable.

The only problem might be timing; the code is using a 4MHz SPI clock rate, and I'm not sure the Pi can go the fast.

The rest of the code creates a 'frame buffer', builds a picture in it and sends it to the display, nothing Arduino specific.

Best to ask the Mods to move this to a more appropriate sub-forum where the likes of Joan will see it.
They're going to do it by linking the pi and arduino together. In theory, it's not too much more difficult than sending value X over serial from the python script, then setting the arduino script to display whatever it receives via serial, then plugging the arduino into the pi via USB and letting it rip.

OP, you should look into that. If it doesn't work, post all your code here, along with a description of the problem. The information should be out there, but you'll have to put it together yourself.

http://www.instructables.com/id/Arduino ... n-via-USB/