Need to test a BS2px and SX-28 for basic functionality
T&E Engineer
Posts: 1,396
I need to test out a BS2px and SX-28 to make sure that it still works. I built a large circuit that did work for some time well·but it is in a location that has power outages and spikes from time to time. I don't know if this is the issue or not as I am not able to visit the location - out of state. The circuit has an LCD and keypad and now takes 10 minutes to display information after power up. Now I hear it does nothing even after 10 minutes (originally - it displayed immediately).
Does simple re-programming the microcontrollers prove that they are ok or should I write (or is there anything already written) to maybe do something like turn on all the outputs with LEDs or something?
Any ideas?
Thanks.
Does simple re-programming the microcontrollers prove that they are ok or should I write (or is there anything already written) to maybe do something like turn on all the outputs with LEDs or something?
Any ideas?
Thanks.
Comments
Typically, test programs start with a minimal core of hardware that must work to get to the point of lighting an LED, then the program successively tests parts of the system (like the display, then the keyboard). Not knowing what you system consists of, it's hard to suggest an order to things. Usually, you want to test simple parts first. If those are broken, there's no point in continuing.
The circuit is quite simple but large. It uses a keypad with a modified version of the SX-28 SX/B program HELP file for 4x4 keypad. It sends the character out serially TX, RX to the BS2px to read. When 4 correct numbers are entered into the keypad the BS2px interprets it and sends out a clock pulse to a set of cascaded 4017 decade counters (110 of them). One of the ~700 outputs of the 4017 turn on a LED for 3 minutes unless the user hits the BS2px reset button allowing him to enter in a new 4 digit code. Thats basically it. It is a simple lookup routine.
I beleive most of the time the client is busy as I will communicate with him and maybe wont hear back for a couple of weeks at times.
Thanks.
1) Display a message on the LCD indicating that it had finished initializing (like "Hello")
2) Output pulses to the 4017 chain and count up on the display (every 10 or 100 pulses so as not to slow things down too much) indicating when the output was sensed or that it wasn't sensed when expected.
3) Display the characters received from the SX-28 keypad scanner
I suspect that it's not the microcontrollers. They tend to be very robust. I think it would be a better use of everyone's time to simply send a replacement SX-28 (if it's socketed), the test BS2px, and a replacement BS2px.