Search found 94 matches

by Craige Hales
Mon Dec 12, 2022 4:52 pm
Forum: ESP-IDF
Topic: ESP32 DAC producing popping noise on the speaker
Replies: 3
Views: 2455

Re: ESP32 DAC producing popping noise on the speaker

1) If you don't have a scope, use audacity to see the wave form in the audio file. audacity.png 2) The high frequency file appears to be a codec that has a 48kHz sample rate. Your frequencies > 24kHz will create horrible artifacts called aliasing . VLC.png The low frequency file looks better. The mp...
by Craige Hales
Fri Nov 18, 2022 12:42 pm
Forum: Showcase
Topic: ESP-Rider Mecanum
Replies: 4
Views: 3609

Re: ESP-Rider Mecanum

Cool!
The thingverse pictures helped a bunch. Thanks for sharing!
by Craige Hales
Fri Oct 28, 2022 4:04 pm
Forum: Hardware
Topic: What's the best way to differentiate between two custom ESP32 boards?
Replies: 9
Views: 4777

Re: What's the best way to differentiate between two custom ESP32 boards?

That could work well if there are only a handful of V1 boards and the CPUs can't be easily swapped and all the V1 mac addresses were recorded or still available. This will typically be the case for me. But keeping a list of more than 5 or so mac addresses in the code starts to be a problem, and if t...
by Craige Hales
Tue Oct 25, 2022 10:39 pm
Forum: General Discussion
Topic: Simultaionus bidirectional TCP communication
Replies: 3
Views: 1954

Re: Simultaionus bidirectional TCP communication

the stackexchange you refer to looks bidirectional. client socket if (client.connect(serverIP, PORT)) { client.print("request\n"); <<<<<<< this is where you put "openvalve" or "closevalve" String response = client.readStringUntil('\n'); Serial.println(response); <<<<<<<< this is where you find out t...
by Craige Hales
Tue Oct 18, 2022 1:57 pm
Forum: General Discussion
Topic: Simultaionus bidirectional TCP communication
Replies: 3
Views: 1954

Re: Simultaionus bidirectional TCP communication

I suspect you are using a bidirectional protocol. Can you show what you do to set up and use the connection? What sort of message do you send to close the relay? What message to open ? How do you receive the message on the far end? If you are building this with http then you could test by using a br...
by Craige Hales
Fri Oct 14, 2022 3:20 pm
Forum: Hardware
Topic: USB to TTL and BreadBoard Power supply?
Replies: 8
Views: 3335

Re: USB to TTL and BreadBoard Power supply?

What sort of supply are you using with the red board? I can't tell if there is a wall-wart connected to the connector at the top right. That supply should be >= 700 ma, preferably a 7 to 9V, >= 1A supply (I read that 12V makes the red board run hot.) The red board is probably like most of them and r...
by Craige Hales
Thu Oct 13, 2022 10:24 am
Forum: Hardware
Topic: USB to TTL and BreadBoard Power supply?
Replies: 8
Views: 3335

Re: USB to TTL and BreadBoard Power supply?

Are the grounds on the two supplies connected? Without connecting the breadboard and USB grounds, they have no common frame of reference.
by Craige Hales
Wed Oct 05, 2022 3:32 pm
Forum: General Discussion
Topic: BLE header files
Replies: 2
Views: 1436

Re: BLE header files

Expand the macros. I think this might be the ones: https://github.com/apache/mynewt-nimble/blob/master/nimble/host/include/host/ble_uuid.h #define BLE_UUID16_INIT(uuid16) \ { \ .u = { \ .type = BLE_UUID_TYPE_16, \ }, \ .value = (uuid16), \ } so (ble_uuid16_t) BLE_UUID16_INIT(uuid16) means (ble_uuid1...
by Craige Hales
Wed Oct 05, 2022 2:41 pm
Forum: ESP-IDF
Topic: LoadProhibited in fseek()
Replies: 10
Views: 4209

Re: LoadProhibited in fseek()

https://github.com/nodemcu/nodemcu-firmware/issues/2718 good info at the beginning, not so much at the end. I found I could reload a static spiffs image by (1) delete everything, then (2) re-add the biggest files first, smallest last. My spiffs dir is 80% used. Before that, I tried for each file{de...
by Craige Hales
Wed Oct 05, 2022 1:43 pm
Forum: ESP-IDF
Topic: UART read losing bytes
Replies: 1
Views: 1554

Re: UART read losing bytes

115200 * 100 - if that means 11,520,000, which would be about 1MByte per second, that's a really high baud rate. My quick research on RS485 says the flow control is not done with RTS/CTS, but uses software (xon/xoff?). I'd guess there is an occasional buffer overrun, causing dropped characters. I d...