#define 0x00 Idea!
Recently I was working on a power management system for a robot competition and needed to study the dynamic power usage of the chassis motor, so I planned to make a wireless power monitor to meet the needs.
#define 0x01 Preview! Some requirements:
#define 0x02 Producer!
hbozyq: an unknown engineer outside the industry, an honorary professor at his own university, and the individual marketing director of Xianyu. Currently in my third year of undergraduate studies.
#define 0x03 Project!
1. Work details: As of August 20, 2020, this project has achieved the following functions:
The current and voltage detection accuracy differs from that of a three-and-a-half-digit multimeter by about plus or minus 5 characters (the maximum value appears at the limit of the range.)
No external power supply is required, the power supply under test is used, the voltage range is 6-30v
Power and cumulative power consumption monitoring have not yet been implemented because the microcontroller has insufficient flash. It will be added in the next version after switching to a microcontroller with larger space.
PC development progress: 50%. Because it is difficult to achieve high-precision (resolution less than 1ms) timing using Python under Windows, only simple data recording has been implemented for the time being, and drawing has not yet been implemented.
In addition, the practicality of 1KSa/S is unknown, and I am considering whether to reduce it to 100Sa/S.
Item Consumption Guide: How to use this item?
2. Challenges faced by the project and problems solved
For this project, the main challenge is the design of the analog signal conditioning circuit. Current sampling part: High-end differential sampling current detection requires four precisely matched resistors. It is more difficult to match if discrete components are used, resulting in lower PSRR. Therefore, low-end current detection is used here, and a 10-fold current amplification is achieved through an inverting amplifier. A reference voltage is introduced at the non-inverting terminal so that a 1.65v voltage is output when the input is 0, thereby achieving bidirectional current detection. The RC filter network is connected between the op amp output and the adc. It has two functions. One is to resist aliasing, and the other is to provide a low-impedance charge source to avoid the impact of the SARADC sampling capacitance on the op amp output.
The voltage sampling part is a relatively simple voltage divider + op amp follower design, which will not be described in detail here.
3. Describe the key points involved in the hardware and software parts of the project
The hardware focus is basically as mentioned above. This part briefly talks about the software focus. The focus of the software is mainly ADC fixed frequency acquisition and interrupt. In the program, a timer is used to trigger the ADC for 4khz sampling, and then the dma transfer is set to interrupt once four times to realize the 1khz sampling completion interrupt. In the interrupt callback program, the average value of the four samplings is calculated, converted into the actual voltage and current value and sent to the receiver, and finally get a regular 1KSa/S sampling result, according to the sampling theorem. Enough to restore current and voltage waveforms within 500hz.
4. See the end of the article for the project material list display BOM.
5. Upload project pictures,
empty board and actual photos,
voltage accuracy comparison,
please view the video demonstration for more tests.
6. Demonstrate your project and record it as a video for uploading
See attachment, file size is limited, the picture quality is impressive, you can turn right to station b to watch high-definition uncensored blockbusters: https://www.bilibili.com/video/BV1oK4y1Y7SB/
7. Whether it is released to the public for the first time
yes
8. Open source documentation
None
9. References
None
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet