Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
bidyutper
@bidyutper
This message was deleted
This message was deleted
need smd of magnetic relay anyone
5V DC SPDT Relay
any info?
bidyutper
@bidyutper
switchin current 230V AC
well, that s 3v..
bidyutper
@bidyutper
thts DPDT...only need SPDT ratin currents 3v k @tzapu
xbary
@xbary
Hello I have a question.
on ESP12F function spi flash write (. I use the address space of 0x0fc000 to 0x3fbfff. The question which addresses to use for ESP01 (1MB) if it works in the variant 64kb SPIFFS. ?? (I'm not using the application SPIFFS)
Me No Dev
@me-no-dev
1MB - 16KB(system settings) - 64KB = start of the space you are asking for
xbary
@xbary
that is beginning SPIFFS in this case will be at 0x14000
xbary
@xbary
I mean functions spi_flash_write
Stavros Korokithakis
@skorokithakis
@tzapu I'm a bit hazy as to what the wifimanager does, i thought it was some sort of web AP but that doesn't appear to be the case
Martin Ayotte
@martinayotte
For those who wish Internet Radio using ESP-VS1053 : http://www.esp8266.com/viewtopic.php?f=6&t=2688&p=46092#p46092
Michael Miller
@Makuna
@martinayotte That would imply they are accessing the buffer as a 32bit type wouldn't it? Maybe the buffer should be declared as uint32_t [8]?
Martin Ayotte
@martinayotte
@Makuna , Unfortunately, the Radio code handles uint8_t, not uint32_t. It is the SPI.writesBytes() that requires alignment enforcement.
Baruch Even
@baruch
I'm trying to use the coroutine code that is already written for my system by creating a cooperative threading mini-system to simplify my code. For that it would be extra nice to be able to override the delay function when running inside a coroutine from the normal delay to the coroutine switching out. For this I need to make the delay function a weak symbol. Will such a change be acceptable for the project?
Obviously, I'd be happy to contribute the cooperative threading as well
andig
@andig
@helio check if you're using any function that yields. E.g. file->readstring is not possible inside async handler.
OT: does anyone have experience with using LoRa radio, e.g. on Adafruit Feather? What is a good starting point for hw and sw?
Lars Englund
@larsenglund
Can I use the ESP RX pin for GPIO while still using the TX pin with Serial.println etc?
Jan Chrillesen
@janchrillesen
larsenglund: If you just need to transmit you can use GPIO 2 for TX. Search for Serial1 on https://github.com/adafruit/ESP8266-Arduino
Lars Englund
@larsenglund
@janchrillesen All other pins are taken in my design :) But I just tried using gpio3 after running Serial.begin and it seems to be working just fine!
Jan Chrillesen
@janchrillesen
larsenglund: OK - for for applications where you need the UART on GPIO1/3 and also needs serial debug using Serial1 is a good solution
torntrousers
@torntrousers
Hi. How hard would it be to update a local build of the trunk code to use the latest sdk, 1.5.3? Could i just do something like overlay the 1.5.3 zip over the trunk checkout somewhere or is it more complicated that that?
Me No Dev
@me-no-dev
no, it's a bit more complicated than that
torntrousers
@torntrousers
any hints or pointers?
Me No Dev
@me-no-dev
you need to replace li libs, weaken libmain for umm_malloc to work and update the relevant headers in the SDK folder of the core with whatever they have added between 1.5.2 and 1.5.3
you can not replace the headers in the SDK folder, just add what's new to them
torntrousers
@torntrousers
mmm, ok, thanks. sounds a bit hard
Michael Miller
@Makuna
@larsenglund Yes it does work, just make sure to init the pin after the Serial.begin() and it will override the pin feature.
geman220
@geman220
@skorokithakis you happen to be around?
geman220
@geman220
Or if anyone can help me, when I try to upload my code I get the following:
warning: espcomm_send_command: wrong direction/command: 0x03 0x03, expected 0x01 0x03
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
error: espcomm_upload_mem failed
Baruch Even
@baruch
@igrr, I would like to hear your thoughts on the change I'm proposing to the delay function to simplify integration of coroutines usage.
I'm trying to use the coroutine code that is already written for my system by creating a cooperative threading mini-system to simplify my code. For that it would be extra nice to be able to override the delay function when running inside a coroutine from the normal delay to the coroutine switching out. For this I need to make the delay function a weak symbol. Will such a change be acceptable for the project?
Obviously, I'd be happy to contribute the cooperative threading as well
Michael Miller
@Makuna
@geman220 I get this same thing once in a while, did you just try again?
geman220
@geman220
Now I'm getting an error when building. error: redefinition of 'void setup()'
Michael Miller
@Makuna
@baruch overriding what delay does can be tricky. Some libraries are very time sensitive and any extra time from a call to delay due to coop task taking to long could break it. I "preach" to not use delay at all in the sketch with my task library due to this.
geman220
@geman220
Should the serial monitor work in the Arduino IDE with the esp?
It joined my wireless network because I can ping it but serial montior has no output and it should be printing out that it's connected
I'm using a Wemos if that makes a difference
Michael Miller
@Makuna
@geman220 yes it works. It works with my wemos. Are you sure you don't have a bad board?
geman220
@geman220
Well my code uploaded and it's on my wifi
bobcroft
@bobcroft
@geman220 Yes, the output of Serial.print (...........) should be visible on the Arduino serial monitor and any other serial connected device like for instance 'Coolterm'. The error message you got means that the Arduino IDE with, esp8266 Arduino installed, cannot sync to the ESP8266 module. This can be due to the ESP not being in the correct mode for flash programming or the TX Rx incorrectly connected. Another issue if the WEMOS is like the nodeMCU is to make sure you select the correct board in the Arduino tools menu. If you have selcted generic 8266 then it will not flash a nodeMCU type board correctly. Also if trying to download using the nodeMCU format you need to have CTS and RTS lines correctly connected to GPIO 0 and reset on the ESP8266 module. There are loads of posts about these connections via a bit of Google searching.
geman220
@geman220
Sorry I should clarify. That error message went away by itself, no idea why. I can upload code to my ESP just fine. It is on my WPA network so it's running the code to connect, I just don't see anything in serial monitor
Michael Miller
@Makuna
@geman220 did you make sure the baud rate are set the same in the sketch and the monitor?
geman220
@geman220
void connectWifi() {
    if (WiFi.waitForConnectResult() != WL_CONNECTED) {
        resetPins();
        WiFi.mode(WIFI_STA);
        while (WiFi.waitForConnectResult() != WL_CONNECTED) {
            WiFi.begin(WIFI_SSID, WIFI_PASS);
            Serial.println("Connecting to wifi...");
        }

        Serial.print("Wifi connected, IP address: ");
        Serial.println(WiFi.localIP());
    }
}
I didn't set a baud in the sketch
That works and it connects because I can ping. If I disconnect my ESP I can't ping. So I'm pinging the correct device
Michael Miller
@Makuna
In your sketch, did you call Serail.begin ()? If you don't Serail doesn't work at all. This call also takes the baud rate as a param, which needs to match the one in the monitor.
geman220
@geman220
And this is a really dumb question but I'm new to Arduino. Pin: D1 Function: IO, SCL ESP8266 Pin: GPIO5`` When I define to use a pin for examplemyservo.attach(?)``` I would replace '?' with '5' correct?