Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
same thing again
and I have an unkillable esptool
Russ Mathis
@RussMathis
@ficeto, the esp goes in the fishing bob/cork and wakes via a spring loaded weight when the fish bites?
Michael Miller
@Makuna
Servo library Pull out for review, supports the new Timer0 and the already present Timer1, based on the Servo library that comes with Arduino
chad cormier roussel
@chadouming
Wifi enabled fishing, brilliant :D
chad cormier roussel
@chadouming
Since i've started trying to get my esp crashing, it won't -_-'
Ivan Grokhotkov
@igrr
@chadouming try analogWrite
chad cormier roussel
@chadouming
Lol
I want it to be crashing while running my program
chad cormier roussel
@chadouming
well, the good news is that my battery seems to not drain at all with deep sleep
which is a good thing
now, that it doesnt crash, that is sad
Me No Dev
@me-no-dev
having this really strange issue here with analogRead
here is my dead simple sketch
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 lcd(-1);

void setup() {
  Serial.begin(74880);
  Serial.setDebugOutput(true);
  lcd.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  Wire.setClock(400000);
  lcd.display();
  delay(1000);
}

uint32_t turn = 0;

void loop() {
  uint32_t heap = ESP.getFreeHeap();
  uint16_t analog = analogRead(A0);
  lcd.clearDisplay();
  lcd.setTextSize(2);
  lcd.setTextColor(WHITE);
  lcd.setCursor(0,0);
  lcd.print("RAM:");
  lcd.println(heap);
  lcd.print("A0: ");
  lcd.println(analog);
  lcd.print("TURN: ");
  lcd.println(turn++);
  lcd.display();
  delay(1000);
}
I do not have any WiFi calls here
but as soon as the settings that are already in get the WiFi to connect
i get wdt reset
if I remove analogRead(A0)
the sketch runs fine
Me No Dev
@me-no-dev
disabing WiFi on boot helped
so I guess calling it while WiFi is connecting yields reset
Russ Mathis
@RussMathis
To everyone, VisualMicro has new update today May 30.
VisualMicro update fixed intelisense. Yhea!
Me No Dev
@me-no-dev
found the problem with the new SDK and analogWrite
timer1 interrupt can not be cleared
which has nothing to do with the SDK
so why is this happening?
Michael Miller
@Makuna
@RussMathis I have found visual micro fails to smartly rebuild when I modify a library, to the point that I have to remember to always hit red build all to even get it too work.
@me-no-dev what do you mean by timer not being cleared? It fires only once du to not clearing the pending field? Or that it continues to fire even though you have called disable?
Me No Dev
@me-no-dev
it can ot clear the interrupt flag
interrupt flag stays on and if the edge interrupt is enabled again
wdt resets
Russ Mathis
@RussMathis
@Makuna , there is an option to build all everytime. VS, by default, only builds the external files to your project once. After that I guess it only checks the file stamps on the project files.
chad cormier roussel
@chadouming
is it fast to write to eeprom ?<
Me No Dev
@me-no-dev
are you asking about this particular EEPROM implementation?
it should be at flash speed
actuall eeproms are slow
chad cormier roussel
@chadouming
this one here
Me No Dev
@me-no-dev
probably the fastest you can get
remeber that write is done only on close or commit
chad cormier roussel
@chadouming
cause i'm thinking about reading the time from an NTP, but only once every hour to stay sync. otherwise i'd just sleep for a certain ammount time
Me No Dev
@me-no-dev
untill you call one of those, you are just manilupating the data in the buffer
chad cormier roussel
@chadouming
instead of getting time from NTP every time
Me No Dev
@me-no-dev
how would that work?
Ivan Grokhotkov
@igrr
there are RTC registers which store current time, you may want to use those...
Me No Dev
@me-no-dev
on wakeup you reboot
where are those?
chad cormier roussel
@chadouming
this indeed looks interesting
Ivan Grokhotkov
@igrr
0x6000071C i think