+- +-

+- User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Stats ezBlock

Members
Total Members: 144
Latest: Donald
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 2261
Total Topics: 109
Most Online Today: 17
Most Online Ever: 53
(September 16, 2016, 01:39:23 AM)
Users Online
Members: 0
Guests: 9
Total: 9

Author Topic: Motor Controller - Arduino Uno R3  (Read 6917 times)

Offline Vincent

  • Jr. Member
  • **
  • Posts: 50
  • life is a mystery
Motor Controller - Arduino Uno R3
« on: March 16, 2014, 12:20:57 PM »
Hi,

Sorry for the delay, but here it is :

Motor Controller - Arduino Uno

This version handle better the interrupt and the lcd overhead, so the output signal is stable over the time. Also I did a little routine
to charge and discharge a capacitor. Beta version but it works !.
I think will be the last version with a non linear hall sensor. As soon as I will finish my new rotor, I will do more tests
with another approach.

Configuration

Pins

// Pin 13 to Main Coils.
// Pin 12 Capacitor Charge Module (BEMF)
// Pin 11 Capacitor Discharge Module
// Pin 2 Hall Sensor (Not linear).

User Variables - Change as you need.

#define mpoles 8;      // Poles motor.                                   ::: Please put your number here !!!
float pulse = 3.25;    // Length Pulse in ms of your coils.      ::: Please put your number here !!!
float lag = 1.00;      // Lag between Hall and firing pulse.     ::: Please put your number here !!!
int tc = 4;            // Period to capture and charge capacitor ::: Please put your number here !!!

This version don't have auto-start, so you need to measure the output at the hall sensor when you do the kick start by hand and calculate your values here :

float pulse = 3.25;    // Length Pulse in ms of your coils.
float lag = 1.00;      // Lag between Hall and firing pulse.

The keyboard can be tricky. For professional applications and long term development I will share another version with a better handle of menus.

Timing

Channel 0 : Hall Input.
Channel 1 : Coil Output.
Channel 2 : Capacitor Charge.
Channel 3 : Capacitor to Load.

I hope this will help with your tests. If anyone have any questions or want to improve the code, feel free to ask and help.

Thank you,

Vincent



Offline Romero

  • Administrator
  • Hero Member
  • *****
  • Posts: 881
Re: Motor Controller - Arduino Uno R3
« Reply #1 on: March 16, 2014, 01:33:06 PM »
Thank you Vincent!

 

Recent Topics

Romero Experiments by Romero
June 10, 2017, 02:22:03 PM

Watersplitting Device via GigaHz pulse Generator by Hitman
June 23, 2016, 05:45:13 PM

Free Energy Flashlight by Hitman
February 24, 2016, 12:35:30 PM

Earth's magnetic field by Romero
January 09, 2016, 05:47:42 PM

Induction Heater of Vasily Kuznetsov by Hitman
July 01, 2015, 10:41:39 PM

Partnered output coils by Romero
June 20, 2015, 01:51:23 PM

Articol de incurajare by sinergicus
February 23, 2015, 12:54:41 PM

Dave45 work and suggestions by Dave45
December 13, 2014, 05:43:42 PM

THE MOST PROFOUND RE-DISCOVERY OF ALL TIME by Hitman
October 18, 2014, 03:54:19 PM

Despre prezent si viitor by sinergicus
October 18, 2014, 02:58:03 PM

Powered by EzPortal