I can't comment for your LEDs but that would blow most of mine.Unfortunately I've dropped unlucky and the red LED appears to be 'dud'. My multimeter is reading 4.5v across the LED's legs but it's not lighting.
Haha maybe not in this case then, but overall it's pretty crap...it doesn't sound like a faulty multimeter.
Nah it wasn't in the wrong way round either; must have just been dead (I'm having one of those weeks so it wouldn't suprise me!), as other LEDs work fine in the same spot.An OC LED is quite rare even after severe abuse but is possible.
More probably in the wrong way round!
Anyway, glad you've got the essentials working and you are taking the right approach. One step at a time.
I wanted to think of a project I could do over Summer which wasn't too challenging that I'd give up early on, but would require me to learn and use new things. In my opinion, this project meets these criteria - although the hardest part is probably yet to come!I’m not criticising. You’ve obviously done the research, put the work in and built your project. Good for you. But, I have to ask, what’s the point? I mean, what’s it for?
So far as I understand it, Guitar hero is a game that challenges the user to operate the buttons in a well timed sequence. Once this is automated, it defeats the whole object of the game. It can essentially ‘play itself’. What am I missing?
ddddgrybodddd
low 0 ' write protect pin set low
i2cslave %10100000, i2cfast, i2cword
writei2c 0,("0000010000050")
pause 10
writei2c 16,("0025100000037")
pause 10
writei2c 32,("0039001000050")
pause 10
writei2c 48,("0025100000037")
pause 10
writei2c 64,("0038000100050")
pause 10
[...]
The code looks like this:I expect it's your code!
The PICAXE when running on internal timers should be accurate to a few percent of ideal. You might see a drift of less than 1% with significant temperature and/or power supply changes.
Certain commands and timers can be effected by each other.
For example, you wouldn't want an internal timer update to happen in the middle of a serial command, so there might be some interaction going on within your code.
Do have any synchronising system to keep the two in time?
let pins = %00100001
pause 83
let pins = %00000001
pause 406
let pins = %00100001
pause 79
let pins = %00000001
pause 1224
let pins = %00100001
pause 83
let pins = %00000001
pause 379
let pins = %00100001
pause 84
let pins = %00000001
pause 1602
let pins = %00100001
pause 84
let pins = %00000001
pause 76
let pins = %00100001
pause 84
let pins = %00000001
pause 77
let pins = %00100001
pause 84
let pins = %00000001
pause 76
[...]
They will be stored properly, yes. But there's no point in doing that until I have the timings accurate.OOh... how painful!
You not considered putting all those pins and pause values in PICAXE EEPROM (not external EEPROM) and just have one little routine to output them?
The pauses should be fine but don't forget that the let pins command will take about 250uS (at 4Mhz) to execute plus the pause command itself giving about 1/2mS total overhead for each part.
Only if you have any background tasks going on will the timings be out.
I'm not typing the code out manually! I wrote a programme of my own (not on the PICAXE) to parse the note charts and output the PICAXE BASIC.Any changes to the code will effect the timings!
Something like:-
Symbol FixedPause = 20
Symbol Start=0
Symbol Finsish = 128
Data 0,pinsValue,PauseValue
Data 2,pinsValue,PauseValue
etc. etc.
For Counter = Start to Finish
Read PinsData,PauseDate
Pins=PinsData
Pause PauseData
Pause FixedPause
Next Counter
Then you only need to change FixedPause when you swap to using I2C EEPROM which will take a little longer to read than data EEPROM.
It will save you one hell of a lot of typing!
let pins = %00100001which is bit 5?
Bit 5 doesn't toggle every time, that's just the pattern of the section of the song I pasted. The format of my outputs is:let pins = %00100001
__________76543210
red yellow orange 0 blue green 0 1
Nope... could that affect timing?EDIT:
Have you fitted the decoupling caps yet?
Couldn't see any in the photo!
Damn, I half hoped then that the capacitor could be the answer to all of my problems!It could cause the PICAXE to function incorrectly, for this you could probably get away with it but its always a good idea to just add them (also keeps people here far happier ).