r/ArduinoProjects • • Feb 14 '20

Controlling an LED Matrix Through the Mouse Location on a .NET Form

294 Upvotes

14 comments sorted by

12

u/SlapShack22 Feb 14 '20

I'm getting into using data from .NET forms and transferring it to arduino to program the hardware. Shout out to Michael Reeve's 2 year old laser turret video for showing me how to do that lol. I know this is an easy project for most people but I'm proud of it :). I'm terrible at coming up with project ideas so if anyone has any beginner/intermediate arduino projects that take a bit of thinking lmk please

P.S. If anyone knows how to make a grid on the form to mimic the individual LEDs on the matrix (an 8x8 grid) please lmk

4

u/PM_ME_NICE_BITTIES Feb 14 '20

You can make a table on the .NET form, then add a panel to each cell.

2

u/johnet326 Feb 15 '20

If you get any replies, could you post to this sub?

2

u/YGears Feb 14 '20

Nice work! You could start looking at different sensors and learning to read datasheets for starters. It's a great way to learn some valuable skills and coming up with fun project while doing that. I'd recommend a distance censor, servo motor and bluetooth/wifi reciever.

They are fairly easy to use but offer a challenge for beginners. Also look into programming in C. Idk how good .net works for those sensors, but I know for sure C does the trick.

Good luck :)

2

u/SlapShack22 Feb 14 '20

Thank you so much!

1

u/[deleted] Feb 15 '20

This is very inspiring! I'd love to see the code to see how it works. Would you mind sharing?

2

u/SlapShack22 Feb 15 '20

I’m at my girlfriend’s house rn :/, but I can send the code Sunday!

1

u/SlapShack22 Feb 17 '20

https://github.com/Donnieleo22/ArduinoLEDMatrix

Alright here ya go! I'm very new to Github so let me know if something isn't working. Have fun!

2

u/[deleted] Feb 17 '20

Thanks so much!

1

u/Menshawy1 Feb 15 '20

I'm Having a Problem concerning a similar project im trying to address each led in the matrix how did you do so and which library did you use

also can this method be used if we connect more than one max7219 ?

1

u/SlapShack22 Feb 17 '20

https://github.com/Donnieleo22/ArduinoLEDMatrix

Heres a little Github tutorial.

And I'm pretty sure you can daisy chain more than one but I have no clue as to how but I've seen some youtube tutorials on it.

2

u/AdamK117 Feb 15 '20

Looks great :). It would be cool to explore whether this can be ran as a background application that tracks the cursor position system-wide. Then you can have a cool widget on your desk that always does it :D

0

u/[deleted] Feb 15 '20

[deleted]

2

u/SlapShack22 Feb 15 '20

It’s kinda hard for me to remember all the code because I’m currently at my girlfriends house for the weekend but I can send the code with notes Sunday evening! In the meantime, yes the matrix does have a max7219, I’m not to sure what you mean by communicating via spi :/, and theres no server involved, I just used a .NET forms application and have it communicate with the arduino directly via serial. Also, I’m really not sure I’m explaining this right since I’m new with both programming arduinos and .NET applications. If there’s any other specifics you want to know before Sunday just let me know. Hope this helps though!

2

u/SlapShack22 Feb 17 '20

https://github.com/Donnieleo22/ArduinoLEDMatrix

Alright here ya go! I'm very new to Github so let me know if something isn't working. Have fun!