ESP32 M5stickCPlus with HX711

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 756
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

ESP32 M5stickCPlus with HX711

Post 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 3677 times
Attachments
FC9_M5stick_plus1.fcfx
(22.62 KiB) Downloaded 157 times

jgu1
Posts: 612
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 506 times
Been thanked: 132 times

Re: ESP32 M5stickCPlus with HX711

Post 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
Attachments
ST7789Test.fcfx
(10.06 KiB) Downloaded 147 times

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 M5stickCPlus with HX711

Post 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

jgu1
Posts: 612
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 506 times
Been thanked: 132 times

Re: ESP32 M5stickCPlus with HX711

Post 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.

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 M5stickCPlus with HX711

Post 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 3403 times

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 M5stickCPlus with HX711

Post 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 3300 times

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 M5stickCPlus with HX711

Post 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 2948 times

stefan.erni
Valued Contributor
Posts: 756
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 M5stickCPlus with HX711

Post 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 2354 times
HX_Send_2022-03-24_11-31-39.jpg
HX_Send_2022-03-24_11-31-39.jpg (19.88 KiB) Viewed 2354 times

Post Reply