Page 1 of 1

ESP32 M5stickCPlus with HX711

Posted: Fri May 28, 2021 4:11 pm
by stefan.erni
Hi Ben

I used a M5stickCPlus with FC9.

Display, Led, USB are working fine.

But the 2 switch (A and B) are not working. Even if i press it there is no change.

On the extern grove connector I connected a HX711and used the component from FC9, but this will not work! It shows always 0.
I tested the signal on the clock and data pin with my oscilloscope . Some signal are changing on these 2 pins.

regards

Stefan

https://docs.m5stack.com/en/core/m5stic ... uick-start
M5StickCplus_2021-05-28_17-01-51.jpg
M5StickCplus_2021-05-28_17-01-51.jpg (62.9 KiB) Viewed 3716 times

Re: ESP32 M5stickCPlus with HX711

Posted: Fri May 28, 2021 8:57 pm
by jgu1
Hi Stefan!

I know you asking Ben hope it´s ok I come in between :D WOW a nice little "multithing" Ihave to buy and test one. ;)
i have some of these ST7789 display, last time I tested one of these the macro component for this display doesn´t work in FC I will perform new test , maybe it is fixed.

EDIT: Make a new test, the ST7789 display did not work, only in simulation :roll:

Br Jorgen

Re: ESP32 M5stickCPlus with HX711

Posted: Mon May 31, 2021 9:06 am
by stefan.erni
Hi Jorgen
You are always welcome.
In your project you are using an ATMEGA 328

Check the CS (chip select) pin from your display. If you don't use the pin, put a wire from the CS pin to GND

regards

Stefan

Re: ESP32 M5stickCPlus with HX711

Posted: Mon May 31, 2021 7:34 pm
by jgu1
Well ok Stefan. I did not know, I will test, thank´s.

Edit. Just check, there is no CS pin. I remember from earlyer, this display not work with FC. Fisher, Martin, tryed to make a component for this display without luck. ;)

Jorgen.

Re: ESP32 M5stickCPlus with HX711

Posted: Wed Aug 11, 2021 9:27 am
by stefan.erni
Hi Ben

On the extern grove connector from the M5StickCplus I connected the Grove - ADC for Load Cell a HX711 and used the component from FC9, but this will not work! It shows always 0.
in the simulation it's working fine.
I tested both signal, the clock and data pin with my oscilloscope . Some signal are changing on these 2 pins and looks ok

What about the "ClockDelay" ? Is this a problem? I tried few but always 0

regards

Stefan
hx711_2021-08-11_10-04-17.png
hx711_2021-08-11_10-04-17.png (321.5 KiB) Viewed 3442 times

Re: ESP32 M5stickCPlus with HX711

Posted: Thu Sep 02, 2021 2:19 pm
by stefan.erni
Hi Ben


Changed the ESP32 board from the M5stickCplus to the M5 Atom and the HX711 Board from Seeed-grove to the original M5 Board.
Send the value via USB to the computer, the ESP32 Atom is sending 8388608 all the time.
I tested with and without pull up and testet with the osciloscope on the pins, The pins have a signal.

regards

Stefan
Atom_2021-09-02_14-10-29.png
Atom_2021-09-02_14-10-29.png (1.55 MiB) Viewed 3339 times

Re: ESP32 M5stickCPlus with HX711

Posted: Tue Dec 07, 2021 9:02 am
by stefan.erni
Hi Ben


The HX 711 (24-Bit Analog-to-Digital Converter) works on a PIC32.I will test later on the ESP32 if this works there also
A question: Can be read both signals from the sensor, Channel A and sensor Channel B at the same time ?

regards

Stefan
20211207_093517.jpg
20211207_093517.jpg (124.91 KiB) Viewed 2987 times

Re: ESP32 M5stickCPlus with HX711

Posted: Thu Mar 24, 2022 10:37 am
by stefan.erni
Hi Ben

After a component library update from ESP32, the HX711 now works on an M5 Atom board.

I use Data=G26 Clock=G32 for the intended 4-pin Grove connector.

I also tested other pins on the bottom of the Atom board and they work too.
Data=G19 Clock=G22
Data=G25 Clock=G21
So I can now connect 2 pieces of HX711 for my project and still have the Grove connector free

Sending the measured values with Bluetooth is very convenient.See picture Hx send.

But a small problem is still with the ESP32.Bluetooth crash with a long string.
Martin has already found an emergency solution.
Can you look there please?

https://flowcode.co.uk/forums/viewtopic.php?f=5&t=696

regards

Stefan
HX711-03-24_11-15-40.jpg
HX711-03-24_11-15-40.jpg (26.06 KiB) Viewed 2393 times
HX_Send_2022-03-24_11-31-39.jpg
HX_Send_2022-03-24_11-31-39.jpg (19.88 KiB) Viewed 2393 times