Hi all,
I am required to design a circuit which regulate the voltage (3.3v) coming for a Master microcontroller pin to not more than 3v and restrict the current to 2uA. This in order to fulfill safety circuit constrains, then the output has to power on a slave Microcontroller which most of the time will be in sleep mode and will wake up about every 200ms do few tasks and go back to sleep again.
So far I have this circuit using Zener diodes with 3v breakdown voltage, having ~2uA across R2.
https://circuitdigest.com/sites/default/files/inline_users/u6088/20180502135924.jpg
There is no problem to operate the slave microcontroller in sleep mode with this current because I have chosen the EFM8SB2 "sleepy bee" with the following features:
https://circuitdigest.com/sites/default/files/inline_users/u6088/20180502140028.jpg
The problem is in the active mode where I require minimum 170uA. Since the microcontroller will be in active mode max every 200ms for a really short time (only send 8 bits to master and read a value from an odometer magnetic sensor ) I though about a capacitor which would charge while the microcontroller is in sleep mode and discharge when the microcontroller is active mode to provide enough power to operate.
My first question is. Is it actually realistic to go for this approach? If so, how would the circuit design looks like?Perhaps I have to use sort of a switch to change from the sleep mode to active mode configuration.
I have read about the charge-pump approach but I do not know if that would be the solution for my problem.
I would really appreciate any hint or references about this matter.
#Capacitor
#LowCurrentOperation
#IntrinsicSafety
Hi B.Aswinth Raj,
Thanks very much for your elaborated response. Plase consider the following aspects.
The slave uC have to main task:
1. Count and record the number of turns of a wheel connected to a magnetic odometer which can be tought as two active high switches, these switches are connected to two GPIO pins (switches need also supply voltage).
Every time the wheel make a turn the switches are pressed causing an interrupt on both pins (depending on the order of the switches being pressed the orientation forwards/backwards is determined)
The circumference of the wheel is ~17 cm and average speed is 30 km/h.
2.Send to the master every second the number of turns recorded so far. The protocol to be used is not defined but I2C is a good candidate as well as bit banging. There are no requirements regarding communication protocol.
The reason why two Zeners are used is only in the case one zener is damaged (instric safety norm). The resistor which is limiting the current is R2.
https://circuitdigest.com/sites/default/files/inline_users/u6088/barrier_analisys_20180503.png
don't know if I am doing something wrong there but that is the result of the simulation. Note that this protection circuit shall be place twice. one on the output on the master module and the other on the input of the slave module.
https://circuitdigest.com/sites/default/files/inline_users/u6088/dummy_blockdiagram_20180503.png
Surely I would provide more details if needed but there are bunch of specifications which are not defined that means it can be determined according to the needs.
I appreciate your comments and advices.
You are doing just fine, your idea is also correct.
You will need two PIC MCU one configured as master and the other as slave. The save will have two external interrupts pins to sense the position of the wheel. I think you are using hall sensors with the magnets on the wheel. You can use the formulae to calculate the speed of the wheel and have it stored in a variable.
When the master needs to know the value of speed, it can request for it to the salve and get the value. If wheel will rotating the slave module cannot be put to sleep, if not then there are will be no interrupts detected and you can put the module in sleep mode till an interrupt arrives.
The master module on the other hand can be put to sleep based on it application. The circuit you are using for protection is also correct but might be an overkill.
Aswinth Raj
PermalinkHi Sunny Black,
My first question is. Is it actually realistic to go for this approach?
Perhaps I have to use sort of a switch to change from the sleep mode to active mode configuration.
I have read about the charge-pump approach but I do not know if that would be the solution for my problem.
- Log in or register to post comments
Joined August 16, 2016 1000Tuesday at 12:29 AM