Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test board: wire buttons to the analog inputs #172

Open
rusefi opened this issue May 21, 2020 · 4 comments
Open

test board: wire buttons to the analog inputs #172

rusefi opened this issue May 21, 2020 · 4 comments

Comments

@rusefi
Copy link
Collaborator

rusefi commented May 21, 2020

@mck1117 says "one idea I had for a test board I had: wire buttons to the analog inputs, and LEDs to outputs. Write firmware that just reads inputs and writes them to each output, That way you can just press buttons and make sure exactly one LED turns on."

we have the outputs. We have JLC soldering switches for us. I think that's a great idea!!!

@rusefi rusefi changed the title test board I had: wire buttons to the analog inputs test board: wire buttons to the analog inputs May 21, 2020
@mck1117
Copy link
Contributor

mck1117 commented May 21, 2020

Another more fully fleshed-out option for this is to have a second MCU and CAN interface on the test board. The ECU-under-test can accept commands to toggle outputs over CAN, whole broadcasting the state of the inputs. Test board MCU applies stimulus (analog input voltage, digital inputs, crank/cam signal), and checks that CAN reports the right thing. Then the test MCU can toggle each output over CAN, checking that the pin changes as expected. That way we could just turn on a single green light that says "board ok" instead of having to check every output manually.

@mck1117
Copy link
Contributor

mck1117 commented May 21, 2020

(but that's of course a bunch more work, and only a required thing at scale)

@jharvey
Copy link
Collaborator

jharvey commented May 21, 2020

I tend to think pre-programmed chip like the one found on the discovery. Let is automagically smash a program into MRE and do some tests.

@jharvey
Copy link
Collaborator

jharvey commented May 23, 2020

Why not connect outputs, to inputs and let the MRE push the buttons? Similar to AV6, AV8, AV9, and AV10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants