Notifications
Clear all

[Sticky] Introduce Yourself  

Page 42 / 43
  RSS

JoeLyddon
(@joelyddon)
Reputable Member
Joined: 11 months ago
Posts: 303
2020-07-03 5:21 pm  

@zezo999

Welcome aboard!

It's a pleasure to have you here, zuhair.

You WILL have fun and learn a lot.

Enjoy!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


zezo999 liked
ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 11 months ago
Posts: 303
2020-07-04 5:49 am  

@christine86

WOW!  Yes, I'd say you know LEDs & the Arduino language!  Super JOB!

Did you make the Charging Battery holder(s)?

Maybe in another thread under a New Topic, you could show more light on your project?   Pictures, etc.?

Could be a huge job...  But, if you could, it would sure be nice to see it...  Poetry in Motion!

 

Thank you very much!  Looks like you will be Teaching here more than Learning!  <smile>

Enjoy!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
Christine86
(@christine86)
Active Member
Joined: 2 months ago
Posts: 12
2020-07-04 1:09 pm  

@joelyddon I was afraid you were going to ask that! I'm afraid I've made little progress on my battery holder class.

I intend that it take care of everything, from detecting the insertion of a battery, to charging,  finally completing the charge & trickle charging, before finally stopping charging.

I'm trying to leverage the action of a IRF540, between VGSmin(2V) & VGSmax(4V), applying current to the battery to charge it.(I'm faking that by using a 220 ohm resistor LED combination to imitate the load)!

Below is the Fritzing diagram (the resistor to the gate from the arduino is 100 ohm), (whilst the resistor between Gate & Source, is 1K ohm). I can't seem to find how you can post an image, so I'm including the test code I'm trying to use. My problem is that ANY non-zero output from the arduino via a PWM output pin, results in the LED glowing

I've begun to realize that components in the real world, don't behave themselves as they should. 🙄 Any ideas as to why this happens? I'd put this in another thread, but I can't even get a fritzin image on here! 😥 


/*
* Test of IRF540 & INA219 for use in battery charger
*
*/

 

//#include "ACS712.h"
#include "TMP36.h"
#include <Wire.h>
#include "Adafruit_INA219.h"
#define I2C_ADDRESS1 0x40
#define I2C_ADDRESS2 0x41

Adafruit_INA219 Slot1ina219(I2C_ADDRESS1);//One ina219 per battery

//IRF540 Conductive range
const float VGSmin = 2.0; // in volts for irf540
const float VGSmax = 4.0;
float VGSminSet = VGSmin * 255/ 5.0; //Converts figures to Output values of Arduino
float VGSmaxSet = VGSmax * 255 / 5.0;

int minCurrent = 255 / 5 * VGSmin; //convert to output of arduino
int maxCurrent = 255 / 5 * VGSmax;
float loadAmps = 0;
float loadVoltage = 0;

void setup() {
Serial.begin(9600);
Wire.begin();

if (! Slot1ina219.begin())
{
Serial.println("Failed to find first INA219 chip");
while (1) { delay(10); }
}
Slot1ina219.setCalibration_16V_400mA();

pinMode(4, OUTPUT); //Sets the gate voltage for MOSFET

}

void loop() {
// put your main code here, to run repeatedly:
float shuntvoltage = 0;
float busvoltage = 0;
float current_mA = 0;
float loadvoltage = 0;
float power_mW = 0;

//i = map(i, 102, 204, 0, 255);
for(float i = VGSminSet; i < VGSmaxSet; i = i+2)
analogWrite(4, i);
delay(50); //allow time for mosfet to settle
shuntvoltage = Slot1ina219.getShuntVoltage_mV();
busvoltage = Slot1ina219.getBusVoltage_V();
current_mA = Slot1ina219.getCurrent_mA();
power_mW = Slot1ina219.getPower_mW();
loadvoltage = busvoltage + (shuntvoltage / 1000);
Serial.print("i= ");
Serial.println(i);
Serial.print("Bus Voltage: "); Serial.print(busvoltage); Serial.println(" V");
Serial.print("Shunt Voltage: "); Serial.print(shuntvoltage); Serial.println(" mV");
Serial.print("Load Voltage: "); Serial.print(loadvoltage); Serial.println(" V");
Serial.print("Current: "); Serial.print(current_mA); Serial.println(" mA");
Serial.print("Power: "); Serial.print(power_mW); Serial.println(" mW");
Serial.println("");

delay(10000);

for(float i = VGSmaxSet; i > VGSminSet; i = i-2)
{
shuntvoltage = Slot1ina219.getShuntVoltage_mV();
busvoltage = Slot1ina219.getBusVoltage_V();
current_mA = Slot1ina219.getCurrent_mA();
power_mW = Slot1ina219.getPower_mW();
loadvoltage = busvoltage + (shuntvoltage / 1000);
Serial.print("i= ");
Serial.println(i);
Serial.print("Bus Voltage: "); Serial.print(busvoltage); Serial.println(" V");
Serial.print("Shunt Voltage: "); Serial.print(shuntvoltage); Serial.println(" mV");
Serial.print("Load Voltage: "); Serial.print(loadvoltage); Serial.println(" V");
Serial.print("Current: "); Serial.print(current_mA); Serial.println(" mA");
Serial.print("Power: "); Serial.print(power_mW); Serial.println(" mW");
Serial.println("");
}

}


JoeLyddon liked
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 1 year ago
Posts: 684
2020-07-04 5:01 pm  

@christine86

Take a look at this post:  Embedded Image

All you should have to do to put an image in your post is 'drag & drop' the image into your post.  That is how I put this "snip" I captured of Duce Robots video.

Good luck and welcome to the forum.

SteveG


ReplyQuote
Christine86
(@christine86)
Active Member
Joined: 2 months ago
Posts: 12
2020-07-04 5:52 pm  

@codecage Thanks, I've worked it out.

 

I did as Joe suggested, & started a new topic in the help me thread. I hope it's able to be viewed properly, as I REALLY need some help with this project I'm attempting!

 

Thanks for the help;

Christine


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 11 months ago
Posts: 303
2020-07-04 10:49 pm  
Posted by: @codecage

@christine86

Take a look at this post:  Embedded Image

All you should have to do to put an image in your post is 'drag & drop' the image into your post.  That is how I put this "snip" I captured of Duce Robots video.

Good luck and welcome to the forum.

You can also Copy (CTRL C) and Paste (CTRL V) into your post.

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
dizzux
(@dizzux)
New Member
Joined: 1 month ago
Posts: 1
2020-07-09 6:39 pm  

Hello, 

I'm a 52y male from the Netherlands. Always wanted to do something with electronics but never did. Recently I started with arduino's and try to figure it all out. (programming, components etc) 

 


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 11 months ago
Posts: 303
2020-07-09 7:33 pm  

@dizzux

Welcome Aboard!

Here is a place that will get you started from Ground Zero, knowing nothing, with the Arduino, etc.

Paul McWhorter is a teacher that fully instructs you...  sometime can be TOO fully, but that's OK...  🙂

  https://forum.dronebotworkshop.com/introductions/introduce-yourself/paged/28/

Can you get anything from Amazon?  I hope so...  He uses a Super Starter Kit for all of his lessons, from Amazon.

Enjoy!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
Barrowman
(@barrowman)
New Member
Joined: 2 weeks ago
Posts: 1
2020-07-28 10:34 pm  

Hi I'm in the U.K. I am 76 and have been interested in electronics since I was 12. Right back to the time of valves or you might call them tubes 😉. I got started with computers in the days of the Commodore Pet with a whoie 8KB Ram. Started integrating computer and electronic control with an old clamshell ( early laptop ) using it to control my central heating. Got my first arduino and loved it. Now have 2 Unos, 3 BBC Microbits and 5 Raspberry Pi. I run Linux Mint 19.3 on my Dell laptop. Always like learning new uses for arduino and Pi.


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 11 months ago
Posts: 303
2020-07-28 11:45 pm  

@barrowman

 

Welcome aboard!!

Sounds like you have been around the block or two...

You will enjoy this website, learning a lot as well as possibly teaching us a thing or two!

What are your immediate projects now and with what?

Take care & stay safe!

Joe

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
Jocke
(@jocke)
New Member
Joined: 2 weeks ago
Posts: 1
2020-07-29 1:59 pm  

Hey all ! jocke here from Sweden. I'm new to the Arduino world. I work as a technician with industry doors and gates etc. I have built a foot pedal for my weld with an Arduino. it will be interesting to follow everything that happens here on the forum. Sincerely

Jocke


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 11 months ago
Posts: 303
2020-07-29 5:40 pm  

@jocke

Welcome aboard from Sweden!!

You will enjoy and Learn from this website!

It is awesome!

Enjoy & take care!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
The Swede
(@the-swede)
Active Member
Joined: 3 months ago
Posts: 5
2020-07-30 2:46 pm  

@jocke

Welcome! 🙂


ReplyQuote
Quentin Campbell
(@qpcamp)
New Member
Joined: 2 weeks ago
Posts: 2
2020-08-01 2:06 pm  

Hi all, I am Quentin Campbell from South Africa. I'm a professor in Chemical Engineering, so I don't know a lot about electronics but I'm keen to learn. I will be retiring in a few year's time, and I've started playing with Arduinos some time ago (on the recommendation of some of my Mechatronic Engineering colleagues). This will hopefully keep me sharp and keen-minded in my old age...

I found Bill's videos the most informing and professional of all those on Youtube.

Oh, and yes, I've already had my first smoke escaping from an ESP32 - I suppose I've joined some club now? 🤣 🤣 

 

This post was modified 2 weeks ago by Quentin Campbell

ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 1 year ago
Posts: 684
2020-08-01 3:59 pm  

@qpcamp

Welcome Quentin!  Yes you have joined the club and a great club it is,  Now the trick is to stuff that smoke back in, then you will have graduated to the next level! 🤣 

SteveG


ReplyQuote
Page 42 / 43