Hi everyone,
I'm completely puzzled: I have a program/hardware that used to work. left it aside for a couple of weeks, now it only "partialy" work ! Let me explain.
This is a game for paintball. it receives hit, count them, add some damage, heal over time, etc ....
my interface with the operator consist of 4 buttons and one toggle:
toggle: run or config mode
PB1 : Increase
PB2: Decrease
PB3: Start (run mode) or Enter (config mode)
PB4: Stop (run mode) or Next (config mode)
Please note that they all have a 10K pull-down resistor.
in order to set a few parameter, the user must toggle to SETUP, and using the NEXT pb, he can go thru parameters. When he want to change one, he must select it with ENTER. he can now adjust the value using INC or DEC. When the value is OK, he validate its choice by pressing ENTER. All these works fine (the 4 buttons and the toggle)
when I'm in RUN mode, the start button shall start the game....it does not !!!! It used to work, by I haven't change the code (unless I'm a nightwalker/coder)
I can't make it work ....totally confused... I even created a new routine, copy/pasted everything, in case the routine was somehow corrupted ....No matter what I do when in run mode, the ENTER button is simply ignored !!
What the <beeep> am I missing ???
Can't figure that one out: Input not being read!
Moderator: Benj
-
- Flowcode v5 User
- Posts: 63
- Joined: Fri Apr 19, 2013 2:18 am
- Has thanked: 10 times
- Been thanked: 14 times
- Contact:
Can't figure that one out: Input not being read!
- Attachments
-
- Tank Sensor - Main Control - Atmel - V1.pdf
- WIRING DIAGRAM
- (56.34 KiB) Downloaded 322 times
-
- Tank Destroyer - Main Board, V2a.fcf_avr
- FLOWCODE
- (132.21 KiB) Downloaded 378 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Can't figure that one out: Input not being read!
Hello,
Have you got a multimeter or similar to try and test the connectivity of your start button and the voltage from the button into the micro, sounds like the problem may be mechanical i.e. maybe a dry solder joint or a tiny short?
Have you got a multimeter or similar to try and test the connectivity of your start button and the voltage from the button into the micro, sounds like the problem may be mechanical i.e. maybe a dry solder joint or a tiny short?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 63
- Joined: Fri Apr 19, 2013 2:18 am
- Has thanked: 10 times
- Been thanked: 14 times
- Contact:
Re: Can't figure that one out: Input not being read!
Hi Benj,
I doubt it is the case, as the same button works fine when used within the config mode !
That's why I don't get it !
Normally that would have been my first reflex !
I doubt it is the case, as the same button works fine when used within the config mode !
That's why I don't get it !
Normally that would have been my first reflex !
-
- Flowcode v5 User
- Posts: 63
- Joined: Fri Apr 19, 2013 2:18 am
- Has thanked: 10 times
- Been thanked: 14 times
- Contact:
Re: Can't figure that one out: Input not being read!
it was a wiring issue...
I have have more than one of those PCB with Setup/inc/dec/enter/next....
one of them, had a wiring difference :the +V and Setup were reverse, so when the setup sw was activated, I would provide voltage to the Enter/Next/Inc/Dec...that why it was working only when Setup was activated...
Mea Culpa !
I have have more than one of those PCB with Setup/inc/dec/enter/next....
one of them, had a wiring difference :the +V and Setup were reverse, so when the setup sw was activated, I would provide voltage to the Enter/Next/Inc/Dec...that why it was working only when Setup was activated...
Mea Culpa !