Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
misterdanb
@misterdanb
wow, just disabling that line leads to 13 μs (!) and no more disconnects
(problem is, i need the adc :/)
Martin Ayotte
@martinayotte
You can add an MCP3421, and you will even get higher resolution. :-)
Or the MCP3021 if you wish to stay at 10bits to keep cost low
misterdanb
@misterdanb
well, since the board on which the esp is soldered on is given, that's not an option (maybe for the next version)
Markus
@Links2004
may not read every loop, how often do you need a new value?
how much voltage the acd gets, it only can handle up to ~1V
misterdanb
@misterdanb
as frequent as possible, it's going to be sort of a game controller
it's frmo 0v to 1v
the input signal
Markus
@Links2004
a game runs typical with ~60fps so every 16ms a new value is good and more then the most people can input :)
misterdanb
@misterdanb
but the latency!
:D
but still, why does a delay(2) help out? and not just putting delay(0) nearly EVERYWHERE?
Markus
@Links2004
its not a task problem, the WiFi use the adc too inside the stack.
may this make problems
espressif does strange thinks some time
misterdanb
@misterdanb
whaaat? for what purpose do they use the adc?
Helio Machado
@0x2b3bfa0
Arrived from a long travel. Tired now. Good night!
Markus
@Links2004
@misterdanb they adjust the WiFi output power based on the input voltage
misterdanb
@misterdanb
okay, i see
didn't expect something like that, but okay, 2ms are okay actually (as you already mentionedr
misterdanb
@misterdanb
thanks for your help btw.!
:)
probonopd
@probonopd
Hi all. is someone around who could look at the SerialUploaderExceptoin? esp8266/Arduino#1453
it basically prevents me from using the hourly IDE builds along with esp8266/Arduino from git
Markus
@Links2004
the error is form the Arduino IDE (java) not from the ESP core.
its a NullPointerException.
Caused by: java.lang.NullPointerException
    at java.lang.String.replace(String.java:2240)
may report it to the Arduino git :)
probonopd
@probonopd
thanks @Links2004 - could it be related to the new OTA stuff?
maybe it's not finding its upload tool?
could that be?
Me No Dev
@me-no-dev
no
you are uploadung over serial
i did not touch that code
probonopd
@probonopd
let me verify quickly with a genuine(tm) arduino
Markus
@Links2004
it try to replace some string and get a Null ptr,
its a internal operation in the IDE no tool from us is involved at this point.
may the IDE not like some config in the board.txt or else but the release version work.
I think it need to be fixed in the Arduino IDE not in the core.
probonopd
@probonopd
you are right
thank you very much
upload to arduino pro mini is also broken
as it's the only change I see recently to the file
and I can tell you what it is...
boardPort.getPrefs().get("iserial") returns NULL
so when the replacer trys to replace with NULL, which can not happen
code should be boardPort.getPrefs().getOrExcept("iserial") to trigger exception and not fill the item
probonopd
@probonopd
I will try, thanks @me-no-dev
Me No Dev
@me-no-dev
yeah, let me know as I do not see a pull request about it
nor a fix merged upstream
probonopd
@probonopd
Let me see if I can build the IDE (never done that)