These are chat archives for esp8266/Arduino

25th
Mar 2016
Stavros Korokithakis
@skorokithakis
Mar 25 2016 01:09
damn, these 3V3 regulators just don't want to stay cool with 9v input
Stavros Korokithakis
@skorokithakis
Mar 25 2016 01:56
i have to ground gpio0 to flash, right?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 02:20
@martinayotte do you know offhand if you can PWM these H-bridges?
Michael Miller
@Makuna
Mar 25 2016 02:21
@skorokithakis are they linear voltage regulators? That big difference for linears causes lots of heat.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 02:21
@Makuna yeah, they are, but i didn't expect them to get that hot
i replaced it with a regulator board and it's fine now
i was just surprised
Michael Miller
@Makuna
Mar 25 2016 02:23
they are inefficient , use a switching regulator ;-)
Stavros Korokithakis
@skorokithakis
Mar 25 2016 02:25
hmm, like which one?
Michael Miller
@Makuna
Mar 25 2016 02:33
those are switching (buck converters) and not linears. Ok, that is strange that they are getting that hot unless you are drawing more power than they are rated for. If you are only running the esp8266, they seem fine (wording seems weird, but I suspect they are peak 3A, continues 1.8A, but probably over stated at that.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 02:58
no, those are fine, my linears were getting hot
Stavros Korokithakis
@skorokithakis
Mar 25 2016 03:04
i'm only running the esp, yeah
i'm running some motors directly from the psu, but that's irrelevant
goddamnit
smoke
what could i have burnt?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 03:10
nothing, it seems
the ESP keeps disconnecting, too
could it be interference from the motors?
Keith Andrew Hill
@vic10us
Mar 25 2016 03:26
What's the best stepper for use in a small CNC or 3D printer on a budget?
Is a NEMA17 big enough?
Michael Miller
@Makuna
Mar 25 2016 04:31
@skorokithakis what sort of motors? If its a standard brushed motor, why yes, they put out a lot of noise. You can put caps right at the motor that helps this (look up RC Motor Filtering Caps).
Ivan Kravets
@ivankravets
Mar 25 2016 06:48
@d-anders try Menu: PlatformIO > Rebuild C/C++ Project Index
tzapu
@tzapu
Mar 25 2016 07:57
@ivankravets , i cought you again :P
(1h later, oops)
the platform ide, can t coexist with another atom configured for web development i guess, is that correct?
it s one atom loaded with all plugins for everything...
tzapu
@tzapu
Mar 25 2016 08:41
also, when using arduino ide compatibility, and library manager i get this error about not finding a lib, https://www.dropbox.com/s/c49j7naos0eqlrf/Screenshot%202016-03-25%2010.41.00.png?dl=0
although it compiles fine it seems...
ehich goes away if i add #include <Arduino.h>
but is that the right thing to do for an esp8266 project?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 10:12
@Makuna hmm, but then I won't be able to PWM them, right?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 10:19
alright something in this build is smoking a lot
is it the H-bridge? how much current does a motor draw?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 12:02
aw, three amps :(
Martin Ayotte
@martinayotte
Mar 25 2016 12:36
@skorokithakis , you means that your motor is taking 3A ?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 12:37
Yes :-(
Martin Ayotte
@martinayotte
Mar 25 2016 12:41
Ouch ! even a L298N module will be too border line. Is this motor so big ?
Baruch Even
@baruch
Mar 25 2016 12:56
I'm using the http upgrade mechanism and it works nicely but there is no info on progress or hooks to add them, would it be ok if I created a patch to add some hooks in there? I want serial prints but I would also be interested in my mqtt server updated with the status too for an over-the-network monitoring of sorts
Stavros Korokithakis
@skorokithakis
Mar 25 2016 12:58
@martinayotte yes, it's an RC car so it has a lot of torque
i ordered an L298N, it says 3A peak, so hopefully it will work
it does 800 mA with no resistance, so it was working fine when the motor was free-spinning, but if it runs against a wall it surges to 3A
Ivan Grokhotkov
@igrr
Mar 25 2016 12:59
@baruch it's not recommended to run other TCP connections while OTA is in progress
this may affect the OTA
Baruch Even
@baruch
Mar 25 2016 12:59
I'm not looking for continuous updates, just a "upgrade checking", "upgrade not needed", "upgrade in progress" status
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:00
can't you do that already?
Ivan Grokhotkov
@igrr
Mar 25 2016 13:00
Okay, that makes sense
Baruch Even
@baruch
Mar 25 2016 13:00
I saw the code already disables all TCP connections other than its own
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:00
oh you're talking about the HTTP one?
Ivan Grokhotkov
@igrr
Mar 25 2016 13:00
pull request is welcome then :)
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:00
the direct one does have hooks
Baruch Even
@baruch
Mar 25 2016 13:00
@skorokithakis, the http one has no hooks
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:00
right
yeah, that'd be nice
i'm writing a small Go server to do the http serving
what do you use, @baruch?
Baruch Even
@baruch
Mar 25 2016 13:01
I want a smart home and I want to upgrade the units remotely without going to them one by one manually, I will have a registry of them all and either use a single upgrade topic on mqtt or one per node and the server will loop through them one by one
Python
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:01
ah right
Baruch Even
@baruch
Mar 25 2016 13:01
This is in collaboration with a friend, he knows hardware and I know software
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:02
i wrote something that you can run and point to a directory so things can request http://server.com/sensors and the server will check the version of sensors.2.4.1.fw and send it if it's newer than what's on the ESP
Baruch Even
@baruch
Mar 25 2016 13:02
both know a bit of the other side as well
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:02
hardware is nice
Martin Ayotte
@martinayotte
Mar 25 2016 13:04
@skorokithakis , so, another 6 weeks before receiving your L298N ... :-(
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:04
yes :(
the slow boat is so slow
it's too bad, i wrote a program to capture events so i could control the rc car from the pc's keyboard arrows and it was working fine when the car was in the air
wheels turning and everything
Martin Ayotte
@martinayotte
Mar 25 2016 13:05
Light up some candles, maybe it will arrive in 4 weeks :-)
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:05
set it down, bam, smoke
haha
i have a shrine :P
@martinayotte another issue is that the esp was getting disconnected from the wifi a lot
could it be interference from the motor?
Martin Ayotte
@martinayotte
Mar 25 2016 13:07
I don't know ... maybe glitch on power. try adding more caps.
tzapu
@tzapu
Mar 25 2016 13:13
i don t think i ve ever seen a discussion related to building something aroudn the ESP where more caps was not mentioned… moooore caps :P
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:17
hahaha yes
hmm it might have been a power glitch, good call
thanks
the good thing about that is that it has a power supply by itself
so you give it 9v and it gives you 5 back, which his well in range of the ldo
Martin Ayotte
@martinayotte
Mar 25 2016 13:21
Yes, If you remember, that was the one I've suggested 2 months ago, but at that time, you felt it was a bit too big.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:28
did i? well, sucks to be me :(
Ivan Kravets
@ivankravets
Mar 25 2016 13:28
@tzapu of course, you should add #include <Arduino.h> on the top of file if use Arduino framework
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:29
@martinayotte oh, it was because the one i got could drive two motors, i didn't notice the amperage
but now that i see how this one works, it's clear that the one you suggested can drive two motors as well
Ivan Kravets
@ivankravets
Mar 25 2016 13:30
@tzapu also don't forget that if you add library manually or install via Arduino IDE Library Manager you need perform Menu: PlatformIO > Rebuild C/C++ Project Index. If you use PlatformIO IDE and PlatformIO Library Manager within it - PlatformIO monitors places where new libs could be added and update the project automatically for you
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:31
hmm, i'm not even sure what the voltage on these motors is
the battery pack looks like four pairs of AA batteries in series
hm
Baruch Even
@baruch
Mar 25 2016 13:32
Add a start callback for HTTP updater #1817
Stavros Korokithakis
@skorokithakis
Mar 25 2016 13:33
oh it does say 9.6v
Baruch Even
@baruch
Mar 25 2016 13:35
BTW, who is doing the merges of the pull requests?
tzapu
@tzapu
Mar 25 2016 13:36
thanks @ivankravets did all that, i was just wondering on the arduino h , as i never included it before. cheers, compiled and uploaded a project, tis nice
Stavros Korokithakis
@skorokithakis
Mar 25 2016 16:21
hmm, i'm getting an error on the min and maxfunctions, what's the right name to use?
ah, std::min and std::max
Martin Ayotte
@martinayotte
Mar 25 2016 16:40
There is a conflict if I remember with <std>. In Arduino.h, to workaround the issue, there are macros _min/_max .
Stavros Korokithakis
@skorokithakis
Mar 25 2016 16:41
ah, thanks
Michael Miller
@Makuna
Mar 25 2016 16:41
@skorokithakis You are better off using a RC speed controller and just use the Servo library to talk to that.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 16:42
@Makuna what's an RC speed controller?
oh, a complete black box?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 16:47
oh that looks great
what does it do? same as the h-bridge i bought?
Michael Miller
@Makuna
Mar 25 2016 16:49
Yes, but they are smart. This one has brake but no reverse, if you need reverse, just search for one with reverse.
They take a standard hobby Servo input and use that to control the voltage on the DC output, including the ability to reverse (if it has the option).
Some of these have actually ATMEL AVRs in them, and can be programmed with Arduino ;-) But it is sort of a hack.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:02
oh hmm
yeah, i need one with reverse.. let me look
hmm, i'm not familiar with these... do i need 20 amps?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:08
@Makuna any ideas? i'm completely lost with these
Michael Miller
@Makuna
Mar 25 2016 17:08
What size is the motor?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:08
no idea :/ this is a car i've had for 20 years
Michael Miller
@Makuna
Mar 25 2016 17:09
What RC car is it?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:09
just dug it up and figured i'd stick an ESP on it
Michael Miller
@Makuna
Mar 25 2016 17:09
1/10th scale? Toy?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:09
great question
i have no clue how you'd measure these :/
Michael Miller
@Makuna
Mar 25 2016 17:09
usually you find the label on it ;-)
Does it seem cheap or does it seem to be serviceable with accessible and removable parts?
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:11
it seems cheap, it has two motors i can't access and it had a pcb i removed
it's a nikko car
i measured the power draw from the wall socket and it was 3A when i held the motor down so it couldn't move
but that may have been the limitation of the PSU
Michael Miller
@Makuna
Mar 25 2016 17:12
probably, as even the cheap motors can draw a lot when stalled.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:12
yeah
hm
so those 3A bridges i bought probably won't work either, huh
Michael Miller
@Makuna
Mar 25 2016 17:12
For an example, a 1/10th Scale RC car can draw 40 amp with the motor stalled.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:13
jeez
if i go down to the rc car store and ask them, will they know what to give me?
Michael Miller
@Makuna
Mar 25 2016 17:13
Many of them have a clutch in them so they never stall the motor as much as burn the clutch.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:13
ah, this one is just straight-up connected to the wheel
Michael Miller
@Makuna
Mar 25 2016 17:14
They should be able to help. How big is it (dimisions)
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:17
about 25x20cm
Michael Miller
@Makuna
Mar 25 2016 17:24
Ok, 10amp should be fine, 20amp on the large size.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:28
great, thank you
i needed a battery and charger for it anyway
maybe i'll just buy a body and two motors too
Michael Miller
@Makuna
Mar 25 2016 17:29
If you think you might be doing more robotics/RC/quads, get a good flexible charger to start with. The new ones charge LiPos which is handy for charging scrap batteries from old laptops or cellphones.
Stavros Korokithakis
@skorokithakis
Mar 25 2016 17:42
hmm, i'm not sure if i will be... i'll go to the shop tomorrow and see what they have