Yjk77nUkgj

#The7thLiChuangElectricityContest#USB Ammeter

 
Overview
Project function introduction:
USB ammeter based on N32G430C8L7+INA199, with an accuracy of 1%, can check the current when USB is working.
 
Project description
reproduction and official case https://oshwhub.com/limengmeng12345/ji-chu-ying-usb-dian-ya-biao
 
Hardware part
uses
national N32G430C8L7 main control chip
INA199 ADC sampling
0.91-inch OLED display screen
 
Software part
is developed through keil and burned with
 
competition LOGO verification
Physical verification
N32G430C8L7-USBMeter.hex
IMG_0851.MP4
57914
#The7thLiChuangElectricityContest#USB current and voltage meter

Introduction: Lichuang Summer Training Camp Example 1 Voltage and Current Meter

Note: * is a required field,
please fill it out during the registration stage↓
 
* 1. Project function introduction
Refer to the USB current and voltage meter in Example 1 of the Jiali Chuang Summer Training Camp. This voltmeter is based on N32G430C8L7 and INA199, and can check the voltage, current and power when the USB is working. 
 
* 2. Project attributes
This project is not original and is only for learning.
 
* 3. Open source agreement
GPL 3.0
 
Please fill it out during the competition stage↓
 
* 4. Hardware
Although I downloaded LiChuang EDA a long time ago, I am still a novice and don’t have much good content to share with you.
1. Large currents require thicker wires
2. Be careful not to use the wrong network labels and identifiers (be careful!!), because the error was so unexpected that I couldn’t find the cause after several days of investigation, and I almost gave up completing the project (as shown in the figure below, the 9-pin VCC uses the network label, and the other power pins use identifiers. This error caused the screen to not light up, which was later solved by flying wires)
3. The power count value fluctuates greatly. I guess it is caused by irregular layout and flying wires. I would like to ask for an answer.
4. This time, I followed the official board drawing intact. I have experienced the whole process of electronic products from design to finished products. I hope that I can have my own ideas and realize them in the next training camp.
qaVsd0NItbJ5BuOYJEIn0qjYcOXt0jCrDZIZ2nVC.png 
 
*5. I have only learned 51 for software
before, and I am unfamiliar with 32-bit microcontrollers. I even learned how to burn programs after joining the LiChuang training camp, so the software part still needs to be learned later.
 
 
 
*6. BOM list
8wXtNfb8uRZL0yKmJ7pqg2WN3D3ERQMYBmFFnM7N.png 
 
 
*7. Competition LOGO verification
 
 
*8. Demonstrate your project and record it into a video and upload it.
 
 
 
More details: https://diy.szlcsc.com/posts/d76d9cb41705430e9a54e7a5feed07a5
 
petal_20220829_213458.mp4
BOM Download
Schematic_#The 7th Lichuang Electric Competition#USB Current and Voltage Meter_2022-10-01.pdf
SCH_#The 7th Lichuang Electric Competition#USB Current and Voltage Meter_2022-10-01.json
Sheet_1_2022-10-01.schdoc
PCB_PCB_#The 7th Lichuang Electric Competition#USB Current and Voltage Meter_2022-10-01.pdf
PCB_PCB_#The 7th Lichuang Electric Competition#USB Current and Voltage Meter_2022-10-01.json
PCB_#The 7th Lichuang Electric Competition#USB Current and Voltage Meter_2022-10-01.pcbdoc
Gerber_PCB_#The 7th Lichuang Electric Competition#USB current and voltage meter.zip
57942
#The 7th Lichuang Electric Competition# Portable corner flashlight

Introduction: Portable corner flashlight with OLED display, brightness level, and remaining battery life.
Maximum brightness 500LM, long-term 200LM, using 3 CREE XPG LEDs, high efficiency, long battery life.
3D printed shell, with magic buckle, easy to hang.

1. Project Function Introduction
DIY a small portable flashlight, lithium battery, with OLED display, convenient display of brightness level, remaining power, remaining time, no more power anxiety.
Designed with a magic buckle handle, it can be easily hung on the backpack strap or belt, convenient lighting, freeing hands, it can be said to be a great tool for walking the dog and shoveling shit.
 
(1) The MCU uses the National Technology N32G430C8L7, which is cheap and powerful.
(2) The flashlight has 5 gears: moonlight, low brightness, medium brightness, high brightness, and extreme. The brightness of each gear can be set separately.
(3) The flashlight is designed with a fuel gauge function to display the battery charge and discharge current and battery capacity, and estimate the remaining usage time.
(4) The shell was painted, and it was the first time to try 3D printing. The resin shell was printed on 3D Monkey, and the effect was good.
 
2. Project Properties
This project is: first public, original.
 
3. Open Source Agreement
Open Source Agreement: GPL3.0.
 
4. Hardware
(1) TYPEC interface, commonly used TP4056 lithium battery charging chip, here set to 580mA current.
 
(2) IP3005 lithium battery protection IC. INA199A1 is connected to the high end to detect the current passing through the battery. The amplification factor is 50 times.
         The REF of INA199 is connected to the 1.25V reference voltage generated by TL432. When charging, the current VBAT->BAT+ output voltage is 1.25V+(0.02R/I)×50.
         When discharging, the current BAT+->VBAT output voltage is 1.25V-(0.02R/I)×50, so that bidirectional current can be detected.
         Due to the internal resistance of the battery, the detection voltage cannot reflect the battery power very well, so it is more accurate to detect the current to count the power.
 
(3) Linear voltage regulator ME6119C30 generates a 3.0V voltage for MCU and peripheral use, and controls the power on through the EN pin.
        When SW1 is pressed, EN gets high level, LDO is turned on, POW-KEY gets high level, and MCU can turn on the power after detecting it, and at the same time control POW_EN high level to self-lock.
        After turning on the power, SW1 can be used as a normal button. When USB is inserted, VUSB gets power and the power is turned on.
        When shutting down, control POW_EN low level to completely turn off the power.
 
(4) SGM3732 forms LED boost constant current driver with a maximum current of 400mA. PWM controls SGM3732 DC dimming, no flicker, and high efficiency filter.
 
(5) Analog detection part, in turn, NTC LED temperature detection, USB voltage, battery voltage, NTC PCB temperature detection, reference voltage 1.25V.
        
 
 
(6) MCU uses N32G430C8L7 from National Technology, which is cheap and powerful. (
 
7) The display uses 0.91-inch 12864OLED, I2C bus, and 24C02EEPROM (to save battery power information).
 
 
【1】PCB front
【2】PCB back
【3】Cut copper foil as heat sink
 
【4】Apply thermal grease, 2mm thick.
---------------------------------------------------------------------------------
 
Some notes:
The 3D printed shell can hold a battery of up to 30*40*10mm, taking into account the space for the wires.
The battery can hold up to 1500mAh, the current of the ultra-bright mode is about 1.2A, and the battery life is at least 1 hour. However, since the working temperature of the 3D shell (resin) cannot be too high,
the ultra-bright mode (500lm) can only work for about 3 minutes at a time, and it will overheat and downgrade. The high-bright mode (200lm) can be always on, and the brightness of the gear can be set freely.
(Postscript, the room temperature is 36 degrees, the shell is installed, and the ultra-bright mode will downgrade after 1 minute) If conditions permit, you can print a nylon shell, which can withstand high temperatures. The downgrade temperature can be higher.
The LED lens I bought is 13*7mm acrylic, with a variety of divergence angles to choose from. Here I use a 10-degree smooth surface and two 30-degree beaded surfaces. TB is very cheap, 70 cents per piece.
The smaller the lens angle, the more focused it is, and vice versa.
 
OLED can be changed to a universal one by yourself, and the PCB size is reserved.
Don't ask, this screen is in stock.
Cover.STL
Bottom shell.STL
BOM.xlsx
mmexport1661779852394.mp4
Source code 2022.8.30.zip
Source code 2022.9.8.zip
Source code 2022.9.16.zip
Source code 2022.9.20.zip
WeChat_20220920124523.mp4
BOM Download
Schematic_#The 7th Lichuang Electric Competition#Portable Corner Flashlight_2022-10-02.pdf
SCH_#The 7th Lichuang Electric Competition#Portable Corner Flashlight_2022-10-02.json
2022-MINI-TORCH_2022-10-02.schdoc
PCB_2022-MINI-TORCH_2022-10-02.pdf
PCB_2022-MINI-TORCH_2022-10-02.json
2022-MINI-TORCH_2022-10-02.pcbdoc
Gerber_2022-MINI-TORCH.zip
57963
#The 7th Lichuang Electronic Competition#Simple oscilloscope and signal generator

Introduction: This design can realize simple waveform measurement and basic signal waveform generation.

Note: * is a required field,
please fill it out during the registration stage↓
 
* 1. Project function introduction
 
This design can realize simple waveform measurement and basic signal waveform generation.
 
 
* 2. Project attributes
 
are disclosed for the first time
 
 
* 3. Open source agreement
 
GPL3.0 Open source agreement
 
Please fill it out during the competition stage↓
 
* 4. Hardware part
 
This design mainly includes four circuits: N32G430C8L7 minimum system, 0.96-inch OLED display, oscilloscope sampling and basic signal output. The principle of the minimum system refers to the official development board of N32G430C8L7; the oscilloscope sampling circuit adopts the principle of resistor voltage division and ADC acquisition, and the relevant display parameters can be adjusted by the rotary encoder; the basic signal output is controlled by the PWM wave output by the single-chip microcomputer, and the relevant parameters can be adjusted by the rotary encoder. Its idea refers to the oscilloscope and signal generator of Lao Liu on Station B.
 
Note: It is recommended to use Jiali Chuang EDA. If you choose other EDA tools, please upload the schematic diagram in PDF format, the PCB drawing in PDF format, and the PCB file in Gerber format in the attachment. Here you can explain in detail the implementation principle and mechanism of your project, precautions, debugging methods, testing methods, etc. It is recommended to introduce your ideas to others in the form of pictures and texts.
 
*5. The software part
is in progress...
 
 
*6.
Please enter the content of the BOM list...
Note: The BOM list involved in the project. Please upload a screenshot of the BOM in this location. Please upload the list details in the attachment in PDF format. It is recommended to include model, brand, name, package, procurement channel, purpose, etc. The specific content and form should be based on the clear expression of the project composition.
 
*7. Competition LOGO verification
 
 
* 8. Demonstrate your project and record it into a video to upload
 
the video requirements: Please shoot in horizontal mode, with a resolution of not less than 1280×720, format Mp4/Mov, and a single video size limited to 100M;
video title: LiChuang Electric Race: {Project Name}-{Video Module Name}; such as LiChuang Electric Race: "Autonomous Driving"-Team Introduction.
 
More details: https://diy.szlcsc.com/posts/d76d9cb41705430e9a54e7a5feed07a5
 
PCB_PCB1_2022-11-05.pdf
BOM_Board1_PCB1_2022-11-05.xlsx
Altium_#The 7th Altium Competition#Simple Oscilloscope and Signal Generator_2022-11-05.zip
PDF_#The 7th Lichuang Electric Competition#Simple Oscilloscope and Signal Generator_2022-11-05.zip
BOM_Board1_#The 7th Lichuang Electronic Competition#Electronic Technology_2022-11-05.xlsx
57996
#The 7th Lichuang Electric Competition#USB voltage and current meter + TTL two-in-one

Introduction: USB ammeter and USB-TTL look too similar, right? Today we will combine them into one! ! !

 
Pre: Let's take a look at the real thing first!
 
* 1. Project function introduction
 
I have a USB-TTL and a USB ammeter. These two look a bit similar. Let's combine them into one today!
 
 
* 2. Project attributes
 
This is the first time I participated in an electric competition. The voltage and current measurement part adopted the officially recommended solution, and then an additional USB serial port chip was added to achieve firmware burning without other tools.
 
 
* 3. Open source agreement
 
This project is open source under GPL3.0.
 
* 4. Hardware part
1. This time, the N32G430C8L7 provided by National Technology is used as the main control, CH340E is used as the USB to serial port chip, and the current sampling chip uses INA199A1DCKR.
2. Since it is planned to use the public mold shell provided by Taobao, the overall PCB is small. In order to facilitate the layout, XC6220B331MR-G is used as the 5V-3.3V LDO. The traditional 1117 package is too large, which will affect the layout.
3. The display part uses a 0.91-inch 4P I2C white OELD screen module.
4. I won’t say too much about the voltage, current and main control part design. I will directly refer to the official design plan. Here I will mainly talk about the USB serial port chip part. This project uses CH340E. 340E uses MSOP-10 package, which is very small and can meet the layout requirements.
Focus on R5 and R6. These two resistors are mainly used to connect CH340E and N32. After the firmware is burned, be sure to remove these two resistors, otherwise it will affect the normal operation of USB-TTL.
 
 
 
*5. Software part
1. The official firmware can be used directly for the software part. The official project address is: https://oshwhub.com/limengmeng12345/ji-chu-ying-usb-dian-ya-biao
2. Burning instructions:
      Since the USB serial port chip has been integrated, you only need to short the BOOT pad first and then power on when burning (you can also power on first, then short BOOT and keep it, and then short RST).
 
Burning Instructions 
    The burning tool uses the official burning tool Nations MCU Download Tool V1.2.2 provided by National Technology, which is attached.
 
The burning tool is very simple to use. After short-circuiting BOOT as required and powering on, N32 will enter the download mode. Select "USART" in the tool interface, and
select the COM port corresponding to CH340 (right-click on my computer, manage--device manager--port, you can view it, the corresponding port on my computer is COM3),
then click Connect Device -> Browse (select the official firmware) -> Download.
 
*6. All BOM list
 
components are purchased from LiChuang Mall, and the specific specifications and models are in the list~~~
 
*7.
 
Finally, verify the competition LOGO~~~
 
 
 
Nations MCU Download Tool V1.2.2.7z
BOM Download
Schematic_#The 7th Lichuang Electric Competition#USB voltage and current meter + TTL two-in-one_2022-10-03.pdf
SCH_#The 7th Lichuang Electric Competition#USB voltage and current meter + TTL two-in-one_2022-10-03.json
Schematic_2022-10-03.schdoc
PCB_PCB_#The 7th Lichuang Electric Competition#USB Ammeter + TTL Two-in-One_2022-10-03.pdf
PCB_PCB_#The 7th Lichuang Electric Competition#USB Ammeter + TTL Two-in-One_2022-10-03.json
PCB_#The 7th Lichuang Electric Competition#USB Ammeter + TTL 2-in-1_2022-10-03.pcbdoc
Gerber_PCB_#The 7th Lichuang Electric Competition#USB Ammeter + TTL 2-in-1.zip
58020
#The7thLiChuangElectricityContest#USB voltage and current meter

Introduction: USB voltage and current meter based on National Technology N32G430C8L7 chip, open source agreement: GPL 3.0

1. Project function introduction
Based on the N32G430C8L7 chip of National Technology, the USB voltage and current meter can measure the voltage, current and power of the load and display it through the 0.91-inch SSD1603 OLED with an accuracy of 1%.
 
 
 
2. Hardware part Main
control circuit: Refer to the "N32G430C8L7_STB Development Board Hardware Usage Guide" of National Technology
 
Power supply: AMS1117-3.3V is used .
The following is the voltage conversion circuit
pdd1bB8kebY6yqSHzHfXj5rnJlcv2DcsWYQO4pyQ.png 
Current sampling circuit: Use INA199A1DCKR
C7ENgmVR0pbJ9EED7z9SFau4N9ZEX3yQPUhMXv7C.png 
voltage sampling circuit:
sl8lEhbMw0h2mqO6aD34FEwjba80NSqW1EXfNomk.png 
 
3. Software part
Use the official program code, modify the definition of the display pin interface, library function and screen initialization code, and in order to improve the measurement accuracy, also modify the ratio of the actual voltage to the meter voltage and the ratio of the actual current to the meter current. For the program burning method, I use the PWLINK 2 burner of Chuangxin Workshop, which needs to be burned online.
 
Screen initialization code Modify
0j9nVVTIXJR5ZvsP9bDEKV0X5uZbZpt0C43r2RLs.png 
the screen pin definition Modify
XgNl1Is6OAFYmZJRL1B1zZNPhidUCRSmNflSwZwB.png 
the library function Modify
GOgaa8DfKYeCzn7r1LTbtNfeVfaKH3yvVBV8iTfK.png 
the accuracy Modify
XhwY8prEJeQS9JMfYmlv97JEOf7AP5BTpeqUOjxI.png 
the PWLINK2 burning method Need to burn online! ! ! !
cyUWSfyKUmoqc5zdJQOGLrGnoDyI2axsLLatjqpj.png 
4. Contest LOGO verification.
 
I was not familiar with EasyEDA Professional Edition and accidentally got the logo wrong.
 
5. Demonstrate your project and record it as a video and upload it
 
 
 
 
 
N32G430C8L7-USBMeter.zip
Physical demonstration.mp4
PCB_PCB1_2022-11-05.pdf
BOM_Board1_PCB1_2022-11-05.xlsx
Altium_#The 7th Altium Competition#USB Voltage and Current Meter_2022-11-05.zip
PDF_#The 7th Lichuang Electric Competition#USB Voltage and Current Meter_2022-11-05.zip
BOM_Board1_#The 7th Lichuang Electric Competition#USB Voltage and Current Meter_2022-11-05.xlsx
58029
Virgo40x & Field

Introduction: A toy keyboard with ATMEGA32A chip-----40%.
Virgo40x & Field
is called Tianzi 40 for short, and it is inspired by Tianzi 68.
As a 40 lover,
I have a Tianzi 68 from Huadan Niang,
but 68 is definitely too big for me
, so I made a Tianzi 40 for my own use.
It has been a while since I started making this keyboard.
At that time, the price of 32u4 was rising wildly.
The big guy of B station: Full-bridge Activator just released a teaching video of 32A ,
so I started to copy
homework. The pcb was actually made a few months ago, but
I was too lazy to make the shell. Now I just made one to do a test.
There is no problem after the test. Some friends have reported rgb problems and delay problems before.
I used it for a few days and didn’t find any major problems. Maybe I have fewer rgb. I only made four rgb lights.
There is no problem with daily typing. The game has not been tested.
32A is a toy, and it is open source for everyone to play with. The entertainment cost is not very high
. Brothers who like 40 can play with it by themselves.
The board is single-key slotted, and the shell is also made of gasket structure.
Gerber_PCB_Field40x.zip
Gerber_PCB_c-port small board v4_2022-07-15.zip
Virgo40-field.dwg
USBasploader_32A.hex
AvrTools.rar
field40_via.hex
Virgo40x & Field-via.json
BOM Download
Schematic_Virgo40x & Field 田40_2022-10-03.pdf
SCH_Virgo40x & Field 田40_2022-10-03.json
Sheet_1_2022-10-03.schdoc
PCB_PCB_Field40x_2022-10-03.pdf
PCB_PCB_Field40x_2022-10-03.json
PCB_Field40x_2022-10-03.pcbdoc
58045
#Jialichuang Summer Training Camp 2022#2S Balance Charger

Introduction: 2s lithium battery balance charger, with OLED LCD display, supports fast charging (series charging), supports charging data feedback.
2s lithium battery balance charger, with OLED LCD display, supports fast charging (series charging), supports charging data feedback.
 
!!! There are errors in the schematic diagram, which will be corrected as soon as possible, but don't quote it for now! ! !
 
 
 
6da9b5e442bc43e73b4ae3881c943140.mp4
BOM Download
Schematic_#Jialichuang Summer Training Camp 2022#2S Balance Charger_2022-10-03.pdf
SCH_#Jialichuang Summer Training Camp 2022#2S Balance Charger_2022-10-03.json
Sheet_1_2022-10-03.schdoc
PCB_PCB_Jialichuang Summer Training Camp 2022_2S Balance Charger_2022-10-03.pdf
PCB_PCB_Jialichuang Summer Training Camp 2022_2S Balance Charger_2022-10-03.json
PCB_PCB_Jialichuang Summer Training Camp 2022_2S Balance Charger_2022-10-03.pdf
Gerber_PCB_Jialichuang Summer Training Camp 2022_2S Balance Charger.zip
58051
electronic
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-22 00:01:01

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号