Nice and appreciate you posting this. It "might" have been better to use a more readily available driver. There is lots of info out there on using the L9110,. Am looking into if it can be substituted but at a glance I think it works on a slightly different principal. Cheers
Hi, I am using the RZ7889 (SMD Version of 7886). Since this ESC is only forward/backward without braking, I would like to use the brake feature that is mentioned in the datasheet. Can anyone tell me how to activate it?
Thanks for the tutorial man. Apparently this IC doesn't support pwm control. The speed control is really noticeable or it goes from 0 to max? I am sorry for the noob question, but I am looking to build a small project and the speed control will be really important. Thanks again.
Hi It's me again. Finally I figured out how to silence that annoying PWM buzz that was comming out of the motors when idle. I am still not good with programming, and I am sure that there must be some other solutions to that problem but this is what I came up with and it works perfect: if ((tempSpeeds >= (speeds-MIDDLE_POINT-50)) && (tempSpeeds MIDDLE_POINT ){ analogWrite(OUT1, tempSpeeds ); pinMode(OUT2, OUTPUT); digitalWrite(OUT2, LOW); } else { pinMode(OUT1, OUTPUT); digitalWrite(OUT1, LOW); analogWrite(OUT2, tempSpeeds ); } } Basically I shut down the output of the H bridge when the value is in these limits. 💪
Very nice video. But i have a question. I need 1 way brushed ESC for rc plane. Can i just use the AtTiny board with a mosfet or transistor instead of the H-bridge driver? And the code must be different right?
change the body of PWM_out like this to make it work with full range void PWM_out(int speeds){ // speed int tempSpeeds = map(speeds, 0, 1000, 0, 255); if(tempSpeeds>255) tempSpeeds = 255; // direction analogWrite(OUT1, tempSpeeds ); digitalWrite(OUT2, LOW); }
Yes. Sure. But I bet that you don't want to break out a 5$ servo to make an esc which support 13A current at 15V instead of spend 1$ for this. Especially when you need more than 1 esc.
@@TheHLab can i make dual way esc for my mini rc tank with this chip or 2 servo chip ? I made arduino rc controller a few days ago and now i want to build 1 dual way brushed esc . Can you help ?
Hi The H Lab I made this with rz7889 It works great, but there is some annoying noise comming out of the motors as soon as I turn on the transmitter. I guess it is comming from the receiver and it amplifies in the rz7889 However when I was doing tests with digispark there was no noise.
I think yes. You can use 2 ESC like this and then connect it with RX via CH1 & CH2, then use MIX mode on Transmitter. You can control a tank with crawler by this way.
Thank you for this.. this will help me a lot..i planned to make a very low budget RC so many can enjoy the hobby.. but i dont know about programing :D So i would ask many question or email you..tnx
Hi Great little ESC However on the first look at the code there is a mistake #DEFINE IN should be 2 and not 0 because 0 is already taken for one of the PWM outputs Or am I wrong I will try it soon on my tiny track.
Hi @Janja, input of attachInterrupt() is interrupt pin (in this case I used INT0), 0 at #define OUT1 is arduino pin0. These are 2 different definitions.
I visited the link given in discription . But there are two codes . One is for attinny 13 . But other is for what ( file named as "brushed esc.ino" ) . Please help me .
great, can I connect this circuit directly to the receiver? why I must prepare code for this circuit? I mean I have general receiver and transmitter and they are already configured, and I can apply direct, is it right?
You can't make it work by that way. Output from Receiver is a PWM and my designed circuit come with an ATtiny (a programmable chip), it read the PWM from receiver and create a new PWM. This new PWM can be switched +/- to make motor run in 2 directions. The origninal PWM can't do a switch like that.
@@TheHLab thank you dear for your reply, kindly i don't need to two directions, I just want the esc to control the speed of dc motor for airplane.so now can I connect it directly?
hi my friend, i tried your project with little adjustment, i changed the attiny with atmega8, change the mosfet (rz7886) to hbridge mosfet i made., ive done already to burn bootloader then your sketch had done uploaded, but seems not working at all. is there solution my friend ? anyway i had succeed by using the simple code below: void setup() { pinMode(11, INPUT); pinMode(3, OUTPUT); } void loop() { analogWrite(3, map(pulseIn(11, HIGH), 1000, 2000, 0, 255)); delay(15); } but its only for 1 direction with just 1 mosfet for switching. would you please help me, BTW im very newby in programing if that code are possible to add such several function that can run same as your project . thankyou verymuch.
Sorry for long respond. I missed your comment: you should have 2 output pins for 2 directions and then do a if to device the received value from INPUT (11) to 2 separate case: for < 1500 and > 1500, then do analogWrite() for corresponding output pins, ex: 1500 for backward.
thats simply not possible. this is a simple as it gets. you're working with digital pwm signals. you need something to decode them and control high power switching devices
You can buy it as I've mentioned in this video: th-cam.com/video/-SF2C8uHyJA/w-d-xo.html For alter, try to use others H-Bridge IC. Don't forget that each IC have their properties: Volt, Watt... and it may differ from 7886
Can you add circuit diagram clearly at the end of video, And where can i buy these ATtiny and AMS 1117 i.c, and in order to work this brushed e.sc do i need to code?
I just tried this code and it works only with #DEFINE IN 0 which is very strange to me Am I missing something And also I noticed some jitter. Is there a way to reduce it ? I am using flysky receiver FS2A 4 channel
Hi @Janja, input of attachInterrupt() is interrupt pin (in this case I used INT0), 0 at #define OUT1 is arduino pin0. These are 2 different definitions.
@@TheHLab I did but its not a traditional schematic what was this designed in? How are you translating the PPM RC Pulse signal from the RX it's not PWM?
@@aliyildizcelik4657 I intend to use even smaller chip (SMD) RZ7886 for my tiny track. One could probably use even H bridge with MOSFETs with this schematic.
Nice and appreciate you posting this. It "might" have been better to use a more readily available driver. There is lots of info out there on using the L9110,. Am looking into if it can be substituted but at a glance I think it works on a slightly different principal. Cheers
Hi, I am using the RZ7889 (SMD Version of 7886). Since this ESC is only forward/backward without braking, I would like to use the brake feature that is mentioned in the datasheet. Can anyone tell me how to activate it?
Thanks for the tutorial man. Apparently this IC doesn't support pwm control. The speed control is really noticeable or it goes from 0 to max? I am sorry for the noob question, but I am looking to build a small project and the speed control will be really important. Thanks again.
Hi
It's me again. Finally I figured out how to silence that annoying PWM buzz that was comming out of the motors when idle.
I am still not good with programming, and I am sure that there must be some other solutions to that problem but this is what I came up with and it works perfect:
if ((tempSpeeds >= (speeds-MIDDLE_POINT-50)) && (tempSpeeds MIDDLE_POINT ){
analogWrite(OUT1, tempSpeeds );
pinMode(OUT2, OUTPUT);
digitalWrite(OUT2, LOW);
} else {
pinMode(OUT1, OUTPUT);
digitalWrite(OUT1, LOW);
analogWrite(OUT2, tempSpeeds );
}
}
Basically I shut down the output of the H bridge when the value is in these limits.
💪
1:27 hi ant
Very nice video. But i have a question. I need 1 way brushed ESC for rc plane. Can i just use the AtTiny board with a mosfet or transistor instead of the H-bridge driver? And the code must be different right?
Yes. but without modify the code only a half of control stick will make your motor run.
change the body of PWM_out like this to make it work with full range
void PWM_out(int speeds){
// speed
int tempSpeeds = map(speeds, 0, 1000, 0, 255);
if(tempSpeeds>255) tempSpeeds = 255;
// direction
analogWrite(OUT1, tempSpeeds );
digitalWrite(OUT2, LOW);
}
Thank you for the explanation. Will try it out soon👍👍
We can make the same with a servo motor chip and an h bridge right
Yes. Sure. But I bet that you don't want to break out a 5$ servo to make an esc which support 13A current at 15V instead of spend 1$ for this. Especially when you need more than 1 esc.
You can refer my video here if you want to transfer Servo to ESC th-cam.com/video/O_brwlF283c/w-d-xo.html
@@TheHLab can i make dual way esc for my mini rc tank with this chip or 2 servo chip ? I made arduino rc controller a few days ago and now i want to build 1 dual way brushed esc . Can you help ?
Hi The H Lab
I made this with rz7889
It works great, but there is some annoying noise comming out of the motors as soon as I turn on the transmitter.
I guess it is comming from the receiver and it amplifies in the rz7889
However when I was doing tests with digispark there was no noise.
use 100nf capacitor on your motor
Sir I have one question for you, can we build this with only mosfet & attiny 13 is that possible, if yes then please make it
I think you would need more like flash back diodes to protect it from back-EMF
Amazing video, thank you and GOD bless.
Thank :)
I can't find out if the rz7886 is connected directly to the battery or not, due to two of your cables blocking the view on the schematic.
Yes. It is connected directly to the battery.
@@TheHLab Thanks
Can we make a dual way differential esc using the same code?
I think yes. You can use 2 ESC like this and then connect it with RX via CH1 & CH2, then use MIX mode on Transmitter. You can control a tank with crawler by this way.
Thank you for this.. this will help me a lot..i planned to make a very low budget RC so many can enjoy the hobby.. but i dont know about programing :D
So i would ask many question or email you..tnx
but the problem is that the PWM is in audible range of frequency which is very annoying..
Hi H Lab, Could you share where to buy these chips. I see a variety of ATTINY13 or 85 chips
I bought it from vi.aliexpress.com/ go there and search for ATTINY85-20SU SOP8
@@TheHLab thank you
Bro can u plz explain how can we make brushed esc with servo motor chip and h bridge
Hi
Great little ESC
However on the first look at the code there is a mistake
#DEFINE IN should be 2 and not 0 because 0 is already taken for one of the PWM outputs
Or am I wrong
I will try it soon on my tiny track.
Hi @Janja, input of attachInterrupt() is interrupt pin (in this case I used INT0), 0 at #define OUT1 is arduino pin0. These are 2 different definitions.
I visited the link given in discription . But there are two codes . One is for attinny 13 . But other is for what ( file named as "brushed esc.ino" ) . Please help me .
That for ATtiny 85. On github, click on that file to view content and you can see header with all info about MCU, IDE...
@@TheHLab sorry . I got it . I didnt noticed what you provided at the starting . I just started reading codes
great, can I connect this circuit directly to the receiver? why I must prepare code for this circuit? I mean I have general receiver and transmitter and they are already configured, and I can apply direct, is it right?
You can't make it work by that way. Output from Receiver is a PWM and my designed circuit come with an ATtiny (a programmable chip), it read the PWM from receiver and create a new PWM. This new PWM can be switched +/- to make motor run in 2 directions. The origninal PWM can't do a switch like that.
@@TheHLab thank you dear for your reply, kindly i don't need to two directions, I just want the esc to control the speed of dc motor for airplane.so now can I connect it directly?
No. You can't. Because this circuit was designed for bi-direction purpose and code is required.
hi my friend, i tried your project with little adjustment, i changed the attiny with atmega8, change the mosfet (rz7886) to hbridge mosfet i made., ive done already to burn bootloader then your sketch had done uploaded, but seems not working at all. is there solution my friend ?
anyway i had succeed by using the simple code below:
void setup() {
pinMode(11, INPUT);
pinMode(3, OUTPUT);
}
void loop() {
analogWrite(3, map(pulseIn(11, HIGH), 1000, 2000, 0, 255));
delay(15);
}
but its only for 1 direction with just 1 mosfet for switching. would you please help me, BTW im very newby in programing if that code are possible to add such several function that can run same as your project . thankyou verymuch.
Sorry for long respond. I missed your comment: you should have 2 output pins for 2 directions and then do a if to device the received value from INPUT (11) to 2 separate case: for < 1500 and > 1500, then do analogWrite() for corresponding output pins, ex: 1500 for backward.
I was hoping it was going to show how to make an esc using basic components like resisters and such, not premade chips.
thats simply not possible. this is a simple as it gets. you're working with digital pwm signals. you need something to decode them and control high power switching devices
Milk Parker ah ok. Thank you for the explanation.
@Milk Parker thank you :)
Did this reverse and forward ????
Sir please can we make only forward direction so then we can use mini rc plane & ornithopter setup
Yes. we can. just modify the code a bit and it will be 1-direction esc.
Thank you for this little esc but I wanna make only forward direction can you please help me for coad...please replay
From where we have to buy these all components
I like it
Can someone make or link me a tutorial to a brushless esc like this that can be plugged into the receiver too?
Hİ sorry. Can u help me please? I can't find RZ7886. what can i use?
You can buy it as I've mentioned in this video: th-cam.com/video/-SF2C8uHyJA/w-d-xo.html
For alter, try to use others H-Bridge IC. Don't forget that each IC have their properties: Volt, Watt... and it may differ from 7886
Capasitor 10.uf brpa volt
Have U got a decent schematic
where is diagram?
This esc is work on flight controller for drone
Sir where to get ATtiny
You can buy on aliexpress.com
Can you add circuit diagram clearly at the end of video, And where can i buy these ATtiny and AMS 1117 i.c, and in order to work this brushed e.sc do i need to code?
I shared all the stuff in description. I also shared code, just download it and upload to your ATtiny.
@@TheHLab thank u
How to make brushless motor driver OR esc
I haven't tried make brushless ESC yet.
I also need that video
I just tried this code and it works only with #DEFINE IN 0 which is very strange to me
Am I missing something
And also I noticed some jitter.
Is there a way to reduce it ?
I am using flysky receiver FS2A 4 channel
Hi @Janja, input of attachInterrupt() is interrupt pin (in this case I used INT0), 0 at #define OUT1 is arduino pin0. These are 2 different definitions.
How can I boost the current rating of this device?
Please try to use another H-Bridge IC, instead of 7886.
Bom dia Vc tem algum projeto com Esc mais potente para motor 12v com escova
Not yet. But I have tested this ESC with 12V supply on another video
Is it work with 180 motor
Yes. Of Course
Pode ser IC 555 ou IC 001?
👍
Bro I am not able to find 7886 ic so any alternative to that
You can try with others motor driver/H-Bridge IC. But others IC may have different current, voltage and size.
Can this run the brushles?
No, Ein. For brushed motor only.
Can we use the code with Arduino nano and tc117hs h bridge ic?
same question
Do you have a schematic for this or eagle files?
I've put schematic on my github. Please see video description.
@@TheHLab I did but its not a traditional schematic what was this designed in? How are you translating the PPM RC Pulse signal from the RX it's not PWM?
What is traditional schematic? All translation process are controlled by MCU Attiny85/Attiny13.
Program an Attiny85: th-cam.com/video/c8jco7PHT-c/w-d-xo.html
@@TheHLab Lets talk how do I contact you direct?
please make a proper guide how to program
I dit it: th-cam.com/video/c8jco7PHT-c/w-d-xo.html
For brucheles???
No. It's for brushed motor
i can use the IC 555 ou IC 001?
No, you can't. need a H bridge IC
@@TheHLab CI 555 can I use ?
From where can i get that rz7886
You can buy it from aliexpress.com
@@TheHLab ok thanks
How much volt can it handle?
It can run at maximum power at 15V-13A
How to upload code..please guide
Please watch my video here: th-cam.com/video/c8jco7PHT-c/w-d-xo.html to know how to program an ATtiny
Sir is there any program requires here?
Yes. you need to program the attiny. Read video description for more detail.
Thank you for video. How can ı load to code. Please help.
I dont find to attniy85. Please add to link
@@aliyildizcelik4657 you can buy on aliexpress.com I have another video guide how to program attiny, search on my channel
Hi, Can another integrate be used instead of rz 7886?
Also, I don't understand the scheme. Is there a more detailed diagram?
@@aliyildizcelik4657 I intend to use even smaller chip (SMD) RZ7886 for my tiny track.
One could probably use even H bridge with MOSFETs with this schematic.
can i use atiny with ln298n?
yes. You can
@@TheHLab how i can do?, move alone. I use ln298.
I am a beginer pls can you send me circuit digram i am unable to understand the one in descreption
555 ic in the picture is actually 7886 ic. I will update the picture. My mistake
@@TheHLab thanks
Bro, only you know what you have soldered and where . He he. Not able to figure out.
I have shared schematic in description. Video only show the placement idea
@@TheHLab Alright sorry didn't see that
Sir can i use LM358 ic
No. You need a H-bridge IC
@@TheHLab sir please provide me name of another h bridge ic
Can i use l293d h bridge ic
yes. l293d should work
@@TheHLab please diagram
I dare you make bldc ESC
Mmmmmmmm not off to a good start. ATtiny13 schetch is to big for a ATtiny 13, 114%. Yes i used the correct file.
It should be smaller than 100% with MCUdude/MicroCore for ATiny13. Check detail specs on header of the .ino file
Sir please give me component links
Please visit the github link in description
@@TheHLab sir I can't find 7886
Please give me another
I haven't tried with others but you can search for "motor driver ic"
@@TheHLab okk sir