Giter Site home page Giter Site logo

milind220 / wireless-charger Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 50.59 MB

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: MIT License

C++ 36.63% Kotlin 0.14% Ruby 2.68% Swift 1.51% Objective-C 0.04% Dart 37.45% CMake 18.13% C 1.42% HTML 1.84% MATLAB 0.16%
arduino esp32 flutter teensy41 wireless-charger

wireless-charger's Introduction

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

wireless-charger's People

Contributors

milind220 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.