Hi U and R,Why not use JLCPCB and get them with most components already fitted?
It's usually cheaper than buying the parts separately, from my experience?
eg. This is part of one of our prototypes, a four layer one, just as received:
View attachment 144077
Why not use JLCPCB and get them with most components already fitted?
As long as you don't mind paying for expensive (DHL) shipping then it usually takes about a week to the UK, but I've only ever ordered bare boards, I've never had any built up. However, I presume it doesn't take very long for them to assemble the boards?, so transport time is likely to be the biggest issue.Thanks for the suggestion. I will definitely be looking into that option for the motherboard. That would be great if I could get it cheaper and with all the surface mount components already soldered on. Might be worth the wait on shipping from China.
In my experience, using DHL delivery it's around a week from ordering, for bare boards.Might be worth the wait on shipping from China
And I already noticed some stray ground stitching vias that got "left behind" when I moved some components and traces around. Endless fiddling resumes...I need to stop endlessly fiddling with it and just hope for the best...
I decided I don't care that much about true SLEEP mode if I can't figure it out. After disabling all peripherals I never use, and disabling some peripherals that are only used when powered on, my circuit (5V regulator, MCU, and voltage divider for battery voltage detect) is down to 8.3 mA when "off" with the MCU still running at full speed. I'm sure that's a horrifyingly inefficient pig by modern standards, but it's good enough for now.
Are you programming in assembler or C?, if you use C then all the interrupt saving issues are taken care of.I got the MCU to stay asleep! I ended up saving a copy of ALL interrupt enable registers, clearing them all out, then specifically enabling ONLY the pin IOC (interrupt on change). Now it stays asleep until I press the handset PWR button, connect/disconnect external power, or turn the vehicle ignition on/off. Upon waking, I restore all interrupt enable registers to the saved values. If conditions are not met to power on within 2 seconds, then I put it back to sleep.
After getting this working and disabling peripherals not needed during sleep, I'm down to 4.55 mA current draw when "off". Of that, 1.22 mA is the voltage divider used to drop the battery voltage down to a range that can be read by the MCU as an analog input for battery level detection, and the rest must be wasted energy from the linear 5V regulator.
I tried to measure amp draw from the output of the 5V regulator to my circuit when in sleep, and my meter must not be able to accurately read whatever tiny amount of current the MCU is drawing in sleep, because I actually got a small negative result.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?