1
0
Fork 0
simon says with pro mini, display, ws2812 and touch keys
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
Ondřej Hruška 24209ae725
workaround for startup glitch
6 anos atrás
lib readme etc 7 anos atrás
.gitignore initial boilerplate 7 anos atrás
CMakeLists.txt improved the randomizer 7 anos atrás
LICENSE initial boilerplate 7 anos atrás
Makefile improved the randomizer 7 anos atrás
README.md updated readme 7 anos atrás
avr-c-bp.pro initial boilerplate 7 anos atrás
display.c workaround for startup glitch 6 anos atrás
display.h improved the randomizer 7 anos atrás
game.c add smoothing to the pwm lightsense, reduce Fail idle delay from 5 to 3s (based on experience on makerfaire prague) 6 anos atrás
game.h added idle rainbow effect 7 anos atrás
leds.c added idle rainbow effect 7 anos atrás
leds.h added idle rainbow effect 7 anos atrás
main.c some timing tuning 7 anos atrás
pinout.h final final 7 anos atrás
rng.c improved the randomizer 7 anos atrás
rng.h improved the randomizer 7 anos atrás
style.astylerc initial boilerplate 7 anos atrás

README.md

Simon game with Pro Mini

There is not much documentation for this project because I made exactly one copy of the hardware and it'll probably end there. But if anyone tries to replicate this, here are some hints:

Parts

  • powered by 4 AA batteries (3 would be enough)
  • buck module to 4V, EN pin controlled by microcontroller (and a button through resistor, mcu senses button for soft shutdown etc). Those modules can be found on aliexpress. For a replacement, you can just put a mosfet there or something, as long as V_sup won't go over 5V.
  • arduino pro mini (anything with atmega328p will work)
  • 4 neopixels - blinky lights (chained)
  • dual 7-seg display unit for score, CC or CA doesn't matter, easy to reverse in code
  • 4 buttons or TTP223 touch keys for user input
  • 1 photo-transistor and some resistors for ambient light sense
  • displays driven by 595 or equivalent (eg 74HC4094)

what to connect to where can be found in pinout.h.

I'll send a more detailed schematic on request, if I still find my notes.

Flashing

The firmware can be flashed using the arduino bootloader (via the makefile), but that produces a 1s delay on startup when the bootloader waits. For this reason I've wiped the bootloader and flashed it directly with AVR Dragon using ISP programming.