Search found 214 matches

by f.h-f.s.
Tue Jun 26, 2018 9:28 pm
Forum: Hardware
Topic: AFE4300 Weight
Replies: 9
Views: 11579

Re: AFE4300 Weight

I'm missing the logicdata for the arduino project(miso always 0 in these files), and missing the RST pin(although the code looks good for resetting). I also noticed SCLK is at 2mhz, but your code does specify 1mhz for the clock frequency. Can you try halving 1mhz to 500khz? What I said about the RDY...
by f.h-f.s.
Tue Jun 26, 2018 10:58 am
Forum: Hardware
Topic: AFE4300 Weight
Replies: 9
Views: 11579

Re: AFE4300 Weight

The RDY signal asserts when a byte is received and de-asserts when a byte has been processed. Can you show me what this signal is doing in the case of arduino and esp-idf? In each case watch the signals STE(CS),SCLK(CLK),SDIN(MOSI),SDOUT(MISO), RDY, RST. I would like to see the signal from startup u...
by f.h-f.s.
Tue Jun 26, 2018 7:32 am
Forum: Hardware
Topic: AFE4300 Weight
Replies: 9
Views: 11579

Re: AFE4300 Weight

What I am noticing is that your command bytes are sent right after each other. Try adding a delay in between them? See page 22 of that datasheet, it states you need to have a delay of 8us in between your commands. It actually tells you exactly how the signal should look.

Goodluck!
by f.h-f.s.
Fri Jun 15, 2018 10:10 am
Forum: Hardware
Topic: AFE4300 Weight
Replies: 9
Views: 11579

Re: AFE4300 Weight

You may drive the CS as a normal GPIO, letting the SPI Driver handle that is possible too. Or just tie it to the ground as the datasheet also mentions(page 21). I would start with trying to read the registers in the AFE4300. The datasheet contains the default values for these registers. If you can c...
by f.h-f.s.
Wed Jun 06, 2018 12:07 pm
Forum: General Discussion
Topic: Esp Wroom32 Size Partition
Replies: 1
Views: 3211

Re: Esp Wroom32 Size Partition

It depends on your .bin file size. You can check the size of your program by checking the "MyProject.bin" file in your build folder. Running "make size" also works.

If say your total image size is smaller than 1mb you can shrink it by specifying a custom partition table in "make menuconfig"
by f.h-f.s.
Mon Jun 04, 2018 7:59 am
Forum: ESP-IDF
Topic: Ways to remove ble bonding Info
Replies: 4
Views: 9219

Re: Ways to remove ble bonding Info

This info is stored in the nvs flash

try bta_gattc_co_cache_reset() https://github.com/espressif/esp-idf/se ... eset&type=
by f.h-f.s.
Mon May 07, 2018 12:42 pm
Forum: ESP32 Arduino
Topic: How to use the SPI and send continuous data no gaps...
Replies: 7
Views: 12169

Re: How to use the SPI and send continuous data no gaps...

You can send data in 8 or 16 bit chunks but also as a array.
Syntax

receivedVal = SPI.transfer(val)
receivedVal16 = SPI.transfer16(val16)
SPI.transfer(buffer, size)
https://www.arduino.cc/en/Reference/SPITransfer
by f.h-f.s.
Wed Apr 18, 2018 8:29 am
Forum: Hardware
Topic: Reed Relay resetting ESP32
Replies: 2
Views: 5152

Re: Reed Relay resetting ESP32

Thanks for the response Markus.
I will get back to testing this issue when I have a stable board. I was getting some shorts because of solder resin residue. Perhaps this also caused the strange behaviour.
by f.h-f.s.
Fri Apr 13, 2018 10:54 am
Forum: Hardware
Topic: Reed Relay resetting ESP32
Replies: 2
Views: 5152

Reed Relay resetting ESP32

Hi all, We have created a PCB with a Reed relay(SIL05-1A72 + flyback diode) switched on using a transistor, esp32(DOIT) and a lm2596 for supplying 5v. I soldered the board, tested it without load on the relay and it works fine. When I put load on the relay by connecting a 12V 0.7A device and switch...
by f.h-f.s.
Mon Jan 22, 2018 10:24 am
Forum: General Discussion
Topic: Task stack size
Replies: 4
Views: 25056

Re: Task stack size

You need the stack space for all the variables in the scope of that task. (not including malloc, which goes on the heap) You can see how much of that space is/was used by calling "uxTaskGetStackHighWaterMark(NULL)" inside the task. Or passing the task handle instead of NULL, calling the function fro...