Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Fr4gg0r
#8087
pvvx wrote:
alonewolfx2 wrote:which sdk you are using ?
0.9.4
Fr4gg0r wrote: Or maybe it works better with the SDK released today.

Yes! :) better with the SDK released today: :)
disasm:
C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump -S %1.a >%1.asm
extract lib to obj:
C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x libphy.a
Disasm ROM: http://df.lth.se/~kongo/esp8266.bin


Unfortunately my code crashes the esp most of the times. When it doesn't, the returned numbers vary greatly. :roll:
Code: Select allstatic int adc_read_vdd( lua_State* L )
{
  unsigned val = readvdd33();
  //refine this
  unsigned mV = val*1000/647 + 854;
  lua_pushinteger( L, mV );
  return 1;
}
 
User avatar
By pvvx
#8088
Fr4gg0r wrote:Unfortunately my code crashes the esp most of the times. When it doesn't, the returned numbers vary greatly. :roll:
Code: Select allstatic int adc_read_vdd( lua_State* L )
{
  unsigned val = readvdd33();
  //refine this
  unsigned mV = val*1000/647 + 854;
  lua_pushinteger( L, mV );
  return 1;
}
 

LUA - :?
Use the limitation of current and voltage to the input of ADC.
0...1V, + resistor. With more than 1V "code crashes"
readv dd33 () programmatically associated with Wifi tx...
User avatar
By alonewolfx2
#8092 What is readvdd33()? Something like internal voltmeter for vdd pin or just a function for adc pin?
User avatar
By pvvx
#8094
alonewolfx2 wrote:What is readvdd33()? Something like internal voltmeter for vdd pin or just a function for adc pin?

Internal soft+hard voltmeter for vdd pin.
ADC pin - analogically.
Vdd changes in the fourth sign (chart ~130 sec > 600 points, power LM1117 3.3V):
You do not have the required permissions to view the files attached to this post.