r/adventofcode • u/mosredna101 • Dec 11 '21
Visualization [2021 Day 11 part 2] [C++] Trying to do everything on the arduino this year. This is my flashing led chaos for today!
26
u/dranzerfu Dec 11 '21
Now go the extra mile and build the micro from discrete components Ben Eater style.
11
u/mosredna101 Dec 11 '21
Just got my first arduino 2 weeks ago, so I'm trying to learn it and c++ with this years AOC. Maybe next year I'll go that extra mile :D
3
u/zbouboutchi Dec 12 '21
Very nice ! I took a deeper look at this problem and tried to generate random input to see if they were all going to converge on an all flashing cave on a 10 rate, and I was surprised to see that's not the case. A large part of grid will go into a regular pattern that never reach a full 0 grid…It was funny, so I went to make a bigger number of simulations and the second thing that triggered me is that all these patterns are not the same length, it can be 7 / 15 / whatever, I also found 1 that came to a 50 step period ! I think it could be fun to see this on your hardware… Try some random grid and you'll find some cool stuff :)
1
u/mosredna101 Dec 12 '21
Oh cool!
Cellular automata can indeed be fun to play with and can have surprising results! I already disassembled the things from the breadboard, so won't be able to test it. But next time I have a fun setup for one of coming days I'll be sure to play around with it a bit more :)
2
u/exomni Dec 11 '21
Did you 3D print the project tray yourself?
2
u/mosredna101 Dec 11 '21
No, got it from Amazon. On the top left I can fit a raspberry pi as well.
1
u/exomni Dec 11 '21
Do you like it/would you recommend it? If so I'd appreciate DM the info.
3
u/mosredna101 Dec 11 '21
It's fine and I'm happy with it, not sure if it is the best ever since I'm new to arduino. Just Google 'geekpi breadboard holder' and you will find it.
62
8
5
1
u/anmolamo Dec 11 '21
I wanna have a look in the source code and the resources from which you might have referred to. Can I get that ? And it's much appreciable project ever.
2
1
u/daggerdragon Dec 12 '21
So... you've seen our community fun event Adventure Time!, right? >_> hint hint
1
3
2
2
1
u/Althar93 Dec 12 '21
Very nice. I was tempted to implement something graphical because I was curious to see what the patterns would look like. You beat us to it it seems :)
1
1
1
-4
u/Pretty_Cockroach_204 Dec 11 '21
gotta say usning arduino and all this components for solving a puzzle
22
u/WarriorKatHun Dec 11 '21
This is very cool!
But this 8x8 grid cant display the full input right?