Você está no 3DFinder
Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.
Descrição
I originally made this as a swag bag tchotchke for my 11-year-old son's birthday party. It is designed so that the kids could build it themselves and get an introduction to soldering and acquainted with micro-controllers, programming and making stuff. My only two design parameters is that it had to be easy and relatively cheap - it had to be under/around €10 and came in at €9.81 including the PLA for the case and 4 batteries.
I decided on the nano and the max7219 because I've used them both before and I knew there were libraries for them that were easy to use and I could get both for under €3 each, leaving around €4 for the rest of the parts.
Code revisions this can be found at https://github.com/leidentech/boloblinky
The program has different functions, which are incremented or decremented by long pressing the left or right button:
-
6-side die - hit either button to roll the die
-
magic 8-ball type random advice giver - either button to get feedback
-
image editor - hit the left button to go through the matrix pixel by pixel and the right button to turn it on or off. When finished, long press either button to display the image
-
race game - hit left or right to navigate through the random road.
-
eyeball - animated eye that blinks and does crazy spins
-
timer - counts down a minute lighting up a pixel per second
The race game is something similar to one of the first programs I ever wrote on the Sinclair ZX81 a long time ago and reminiscent of the Mattel Electronics games I played in the '70s. I had ideas of other games but since there are only two buttons the possibilities are limited.
Build
OpenSCAD and STL files for this device can be found in the case directory. There is also an alternate design with the micro switches inside the case. My son preferred the switches on the outside.
Battery case:
place battery ends in the case so that the spring is at the end nearest the square plug bracket at the end where the switch is. Wire the nearest spring end underneath the bracket to the middle pin of the slide switch. Wire the nearest pin of the slide switch to the (-) end of the two pin plug passing the wire underneath and through the bracket.
Wire the farthest flat end on the same side with a red wire to (+) side of the two pin plug passing the wire underneath and through the bracket.
Switches and Nano wiring
Attach two wires with female plugs to the GND/VIN on the Nano next to the RST pin.
Wire the two pins nearest the bottom wall on the switches together and the two upper pins from the switches together, wire the middle pin on the switch nearest the Nano to D2 and the middle pin of the other switch to D3. Wire the remaining pin on the switch nearest the Nano to GND next to D2 on the Nano. Wire the remaining pin on the far switch with a female plug to go into the GND of the max7219.
Wire (with female plugs) the Nano's D10 to go to DIN on the max7219, The D11 to go to the CS pin on the max7219 and D13 to the CLK pin on the max7219. Wire the 5V pin on the Nano to the 5V on the max7219.
This wiring corresponds to the Nano code and the libraries used.
Plug all the wires into the max7219 correctly and place that in the opening flush with the face of the top. Bend the pins as necessary to make the fit tight. Slide the Nano into the slot so that the usb port is sticking out of the provided hole.
Gostou deste modelo? Crie uma conta grátis para salvar seus favoritos e voltar a eles depois.
Criar conta