Skip to content

A monorepo with all the code and design files for my final year project to wrap up my undergraduate degree in Energy Science and Engineering!

License

Notifications You must be signed in to change notification settings

Milind220/Wireless-Charger

Repository files navigation

The Smart Charge System

All the code and design files for the wireless charging system that I made for my final year project! This is the capstone project for my undergraduate degree in Energy Science and Engineering!

Summary:

A custom built, high power, smart wireless charging system for robotics. The charger transmitter can be controlled from a sleek online dashboard, and the charging mode, output voltage, current, and power can also be monitored. The charger automatically detects the presence of a robot on the charging pad, and switches from STANDBY to ACTIVE charging mode. It also features a closed-loop feedback system to reach the target charging voltage for the robot.

IMG_8868

Contents

Inverter Controller

The inverter controller is a Teensy 4.1 microcontroller board. It uses 4 precisely timed PWM signals to control an H-Bridge inverter with phase-shift control, which then generates a modified square wave signal that is used to energise the primary (transmitter) coil. It also uses a single digital pin to control the enable/disable function of the MOSFET driver ICs. It also gets signals for the mode to control the inverter from an ESP32 that communicates with it using i2c.

The Teensy 4.1 was chosen for this task for the following reasons:

  • Arduino compatibility, which makes it ideal for rapid development.
  • High speed microcontroller. The Teensy's core is a NXP i.MX RT1062 that runs at 600 Mhz.
  • Capable of producing very high speed, high resolution, precisely timed and coordinated PWM signals.

The 4 PWM signals are produced as two pairs of complementary signals, with a fixed duty cycle of 50% and frequency of 100 kHz. The two pairs of signals have a variable phase shift (0-90 degrees), and the degree of phase shift controls the output waveform from the inverter. The RT1062's eFlexPWM module also inserts deadtime, so that shoot through doesn't occur between same-side MOSFETs.

A more detailed explaination of the code is given in the Inverter Controller directory.

WebLink Primary

The Primary Side WebLink is an ESP32 development board that communicates with the Teensy 4.1 inverter controller via i2c. It obtains the secondary side voltage and current information from the connected Firebase realtime database. This is then used to derive the mode command that it sends to the Teensy. It also sends the Teensy the secondary voltage level, which is used to implement the closed loop control algorithm.

ESP32's are low cost, easy to use, and incredibly powerful (probably overkill for this task). They are also Arduino Compatible, which once again helps with rapid development.

WebLink Secondary

The Secondary Side WebLink is an ESP32 development board that sends receiver voltage, current levels to the Firebase realtime database. However, this board does not connect directly to the voltage, current sensors. The sensors used operate at a voltage of 5V, and have analog outputs, which makes it likely that they would damage the ESP32s GPIOs if connected directly. Instead, the ESP32 interfaces with an Arduino Nano via i2c, which is instead used to reads the sensors.

Secondary Sensor Reader

The secondary side sensor reader is an Arduino Nano that reads the analog inputs from the voltage and current sensors. It converts the ADC readings into the actual voltage and current values and then sends those to the WebLink Secondary device via i2c (through a logic level shifter).

SmartCharge Dashboard

This is the control and monitoring dashboard for the SmartCharge System. It is used to view the charging mode, as well as receiver voltage, current, and power in real-time. It can also send on/off commands to the charging station.

Hardware

This folder contains the electrical schematics and gerber files for the project. This includes the schematics for the inverter and secondary-side control board.

Simulations and Modelling

This folder contains:

  • The EasyEDA simulation done to analyse the resonant frequency of the system, and to confirm the values of the LCC network's capacitances and inductances.
  • The MATLAB code used to calculate the LCC compensation network values.
  • The Excel file used to model the entire system.

Report and Presentation

Files in this folder:

  1. FYP final report
  2. FYP final presentation

About

A monorepo with all the code and design files for my final year project to wrap up my undergraduate degree in Energy Science and Engineering!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published