Babbage bag memory game


#1

Hey guys,

Gotta support question for you about the babbage bag memory game. My daughter got it wired ok and it looks right… All the buttons press and the lights go on. BUT when the blue is used in the sequence it says we failed when in fact we should not have?

Help!


#2

There’s always a distinct possibility I flubbed the code horribly, but I suspect it’s a wiring problem. I await thy picture of wonderment!


#3

one thing nokia is good for… camera!


#4

Hi dude

The leads on the two right hand led look very close, that could be a possible location for trouble

aside from that it’s strange its only the blue is the LED orientation correct?

Gee


#5

checked and yes its correct…

the light comes on… just the button press says I lost a live

I tested all lights go on and all buttons press (returning statement in terminal…)

Code issue?


#6

Here is a vine to show you what happens

https://vine.co/u/1096010522966536192


#7

Also forgot here is the output…

Attempting to connect to PD
Connected to PD
Playing Tune 0…
Pressed button: 0
Notes: [‘g#5’, ‘g#4’, ‘e5’, ‘e4’, ‘c5’, ‘c4’]
Pressed button: 1
Notes: [‘f4’, ‘f5’, ‘a5’, ‘a4’, ‘c#5’, ‘c#4’]
What have you done!?
2 lives left!
Get ready…
Playing Tune 0…


#8

This could easily be a software problem, it’s been a while since I’ve played with Babbage-Lights-N-Sounds. I might have to set it up and test again. Could have sworn I had it set up on a breadboard somewhere.


#9

Adafruit permaproto ;-) I am setting one up when this is confirmed (for the wee lassie mind)


#10

Right so I retested and noted that if I press the blue it prints on the output that i pressed the left most button and then the blue button…

need to thing wire or code…


#11

The code is seriously bonkers, I’ll grab a kit and see if I can replicate!


#12

You know, I’m getting exactly the same results!


#13

so move the LED where?


#14

Anywhere, swap it with another LED and watch the problem follow the blue LED… I don’t… even…


#15

hahah your right!

now what?


#16

Trying to work out what’s going on electrically- we know the Blue LED has a higher forward voltage than the others.

Move the Blue LED to the far right, and see if that helps. Seems to be at least better for me.


#17

Okay! It’s crazy time!

Pull off ALL the LEDs, put them all back on backwards. Unplug the GND wire from GND and plug it onto GPIO 27.

Run this code: https://github.com/pimoroni/babbage-lights-n-sounds-python


#18

you mean swap the positive negative… or instead of red blue yellow green make it green yellow blue red (keeping the same positive negative


#19

Swap the positive and negative, basically reverse the LEDs polarity.

Just a word of caution- I’ve tested it with no ill effects so far, but don’t press buttons while the LEDs are lighting up!


#20

Eep is that save for kids? My daughter will certainly do that!