Arouse1973
Adam
Hi Steve. I have not touched the brownout, I'll take a look.
Adam
Doesn't look like the device has a brownout feature.
Adam
Hi Steve. I have not touched the brownout, I'll take a look.
Adam
Kris had already considered charging the cap with a P channel MOSFET instead of the diode, but the idea was abandoned (idea was suggested in post 60, abandoned in post 70).
Thank Bob.Trying to follow this thread to see if I can help. Can someone post an up to date schematic? I really have no idea what we are talking about now.
Bob
Thanks.This is the latest schematic we have.
Thanks.
So I guess the capacitor provides power to the uC when the light is on, and it is (hopefully) in sleep mode during this time.
Bob
The capacitor value should be way above what is needed if the uController is sleeping during this time. The sleep current is < 1uA and 1 1uF capacitor will lose 1 volt per second at that rate.
Bob
Yep thats my next job. When I have time.The micro has a watchdog timer that you can run while in sleep and it will wake the PIC up when it expires. You can set the time to expire over a fairly wide range. I assume that is what Adam is using.
Bob
The high activation force is needed to give the operator feedback, even if they are wearing gloves.Roger on the switch actuation force being largish.
Yes, it’s quite huge.And I suppose that gigantic device near the top edge is the Schottky diode?
Yes. Tiny little sucker. I had fun soldering that one.And the little speck mounted next to the push button switch is the energy-storage capacitor?
I put the 220 ohm resistor there, as I didn’t have a 330 here. If you have a 330 there, please substitute. It sounds like I got those wires backwards. Right before I shipped it to you, I replaced the supply wires as the ones that I was using had a little plug connector on the end. The MOSFET source should be black, resistor tail red. Sorry about that. Good catch! No power was applied the board after the wires were replaced.And the little part on the right side is a 220 resistor connected between the MOSFET drain and the black wire (WP1)? And the red wire, soldered next to the black wire on the right edge of the board, is the circuit common (WP2)? Any reason for that particular ordering of colors? The free end of the resistor is positive (usually colored red) with respect to circuit common (usually colored black).
Yes, but you can use anything from 2.8-5v for testing. I just said 4v, as that's what I was using. Again, sorry about the switched colors. You could also switch the wires.Would you suggest that I apply +4 VDC to the black wire (WP1) with the red wire (WP2) as common to power this up for testing?
Yes, but the option to have the PICKIT3 supply the power is somewhat hidden in the software. Let me know if you don’t find it and I'll locate it again.Will the PICkit 3 provide Vdd power for the PIC 10F200 from the USB computer connection, for purposes of examining the code present in the PIC? In other words, can I just connect the cable to the PIKkit 3 and not worry about applying any additional power to the PIC?
CorrectOn connecting the multi-colored wires on the male header to the PICkit 3 6-pin female connector:
ORG (PP6) to Pin 1 (denoted by an arrow on the PICkit 3 case)
RED (PP5) to Pin 2
BLK (PP2) to Pin 3
WHT (PP1) to Pin 4
BLU (PP3) to Pin 5
no connection to Pin 6.
Thank you and take your time!If all the above looks okay, I will power the board up tomorrow and look at the I/O pins with an oscilloscope.
Do not apologize. There is no rush on this. All of your efforts are deeply appreciated!Update: I am having a right nightmare trying to get this PIC to go to sleep and wake-up on the watch dog. Sorry it's taking me so long. I am a week behind due to work at home. Adam