Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:24
    dok-net synchronize #8073
  • 00:22
    dok-net synchronize #7952
  • 00:19
    dok-net synchronize #7979
  • 00:16
    dok-net synchronize #8008
  • 00:16
    dok-net synchronize #8011
  • Dec 02 23:54
  • Dec 02 23:27
  • Dec 02 23:24

    mcspr on master

    GCC 10.3 Bugfix 1 (#8393) Fixe… (compare)

  • Dec 02 23:24
    mcspr closed #8393
  • Dec 02 23:07
    mcspr synchronize #8393
  • Dec 02 22:59
    dok-net synchronize #8011
  • Dec 02 22:59
    dok-net synchronize #8008
  • Dec 02 22:53
    d-a-v synchronize #6690
  • Dec 02 22:38

    mcspr on master

    mDNS timeout: use real type (#8… (compare)

  • Dec 02 22:38
    mcspr closed #8394
  • Dec 02 22:38
    mcspr closed #8360
  • Dec 02 22:17
    mcspr synchronize #8394
  • Dec 02 22:09

    mcspr on master

    Update EspSoftwareSerial to bug… (compare)

  • Dec 02 22:09
    mcspr closed #8389
  • Dec 02 22:01
    mcspr synchronize #8389
Sven Eliasson
@comino
and maybe slower flanks for the esp
(high -> low)
Stavros Korokithakis
@skorokithakis
hmm i see
that should be fine
Chris Elsworth
@celsworth
ok, PWM seems to max out at around 50kHz, so I guess its quite a bit more limited than bit banging
even at 50Khz its getting pretty shakey on the scope, not very stable
Stavros Korokithakis
@skorokithakis
that's odd
try bitbanging and see if it's better?
Chris Elsworth
@celsworth
ok
Stavros Korokithakis
@skorokithakis
that's surprising, though
Chris Elsworth
@celsworth
all I'm doing atm is analogWriteFreq(50000); analogWrite(2, 512); then watching the result :)
Stavros Korokithakis
@skorokithakis
makes sense
Chris Elsworth
@celsworth
at 20000 its very stable, even though its sending 22kHz according to the scope hardware counter O_o
Stavros Korokithakis
@skorokithakis
that's very odd
are you sure you didn't just mistype 22000? :P
Chris Elsworth
@celsworth
very sure :)
I'll try it at 22000 actually :)
Stavros Korokithakis
@skorokithakis
huh, weird
yeah, see what that says
Chris Elsworth
@celsworth
that says 22.2kHz, how strange
Stavros Korokithakis
@skorokithakis
hm
why are you analogWrite()ing 512?
Chris Elsworth
@celsworth
to get a 50% duty cycle, just to make it easier to see on the scope
Stavros Korokithakis
@skorokithakis
isn't it 0-255?
Chris Elsworth
@celsworth
0-1023 according ot docs
Stavros Korokithakis
@skorokithakis
ah, different from the arduino
Chris Elsworth
@celsworth
it is working, I have a nice square wave displayed, jjsut the frequency isnt' all that accurate, especially at higher PWMs
1000 is pretty much bang on.. 996Hz
Stavros Korokithakis
@skorokithakis
maybe this is related? esp8266/Arduino#836
odd how the frequency is sometimes higher and sometimes lower
Chris Elsworth
@celsworth
you might be able to see it on logic analyzer too
going down to 200Hz..
Stavros Korokithakis
@skorokithakis
i'll give it a shot when i set it up, i have things set up differently now :/
Chris Elsworth
@celsworth
199.7Hz, thats getting quite good now. I think its probably just interrupt limitations
could try bitbanging but can't keep that up for long or the chip will jsut reset :/
Stavros Korokithakis
@skorokithakis
how long do you want to do it for?
Chris Elsworth
@celsworth
basically permanently, I need a permanent output voltage at a level of my choosing
Stavros Korokithakis
@skorokithakis
ah hm
Chris Elsworth
@celsworth
I have a motorised ball valve on order, and it takes a control input voltage of 0-10V to decide how "open" it is
I can op-amp up to 10V, thats no problem
Stavros Korokithakis
@skorokithakis
hmm, right
Chris Elsworth
@celsworth
its just generating a signal in the first place, I was going to PWM and then low-pass filter
Stavros Korokithakis
@skorokithakis
yeah
Chris Elsworth
@celsworth
1kHz will probably do, I need to do the maths to see how much ripple it will generate
Stavros Korokithakis
@skorokithakis
if the frequency is too high, i think the pwm wouldn't be able to keep the watchdog happy
that's probably why it's not going as high as bitbanging
Chris Elsworth
@celsworth
but since its driving a motor I don't want much ripple, or the motor will permanently be trying to move, not good
Stavros Korokithakis
@skorokithakis
yeah :/
Chris Elsworth
@celsworth
apologies @all for offtopic :)
kinda gone into electronics ;)