In the future it will be far easier to simply use a voltage regulator (whether it be linear or SM) with an enable input

They were specced as bjts which gave them an unacceptable v drop, however marcos originally intended them to be fets. I forget why it was omitted/dropped, but the FET idea could have worked OK. The bjt one, not so much.slacker.cam wrote:Ah, you guys must be referring to Q18 and Q19. Yeah, they we're supposed to turn on the 'switched 5V' regulator when the key was switched on by the looks of it. I didn't realise that they had been removed but it does make sense. I'm interested to know why it didn't work. It looks like it should do. Aside from maybe the lack of a pull up resistor on the base of Q19. I'll dig into some old posts and see if this has been covered.
This doesn't solve the issue discussed in the other thread, though. And there is no real need, either, as the supply to this regulator can be supplied by a key controlled relay. I guess it'd be nice to not have to have the switch input be clean, too. Probably an enable reg like this is a very good idea from an external wiring simplicity point of view.In the future it will be far easier to simply use a voltage regulator (whether it be linear or SM) with an enable input :)
I have done this before, with the power cut off during logging. The down side to this is you lose the last 512 bytes of the log. It is much better if we can flush the files and close every thing down in a managed order.Fred wrote:
it would need to keep power until writing was done, or, alternatively, it would need to write in a safe way that didn't mind a power cut. IF that is possible.
+1 . With the micro in sleep there is always the car battery to power the USB transfer. There is no need to power the micro from the USB and it complicates the circuit.Fred wrote:
I think plugging USB into the ECU general 5v is not a good idea at all, really. Tempting as it is.
Sounds good, with the proviso that there is a power LED on the peripheral parts of the board such that you can see what the thing is doing.Spudmn wrote:I see it working some thing like this.
Engine running everything powered up.
Key turned off. SD card flushed and and SD regulator shut down. Any other house keeping.
Micro put into sleep mode.
Interrupts used to bring Micro out of sleep. UART coms or some one turning on the key.
If UART coms and some one is trying to down load the data logs, Power up the SD Regulator and start the file transfer.
If no Coms for a time, go back to sleep.