Hi Ben
What about this hardware? SparkFun DataLogger IoT - 9DoF DEV-20594
It's has the 4bit sd-card what is now supported by FC10.
And on board is a IMU ISM 330 DHCX on SPI bus and a Magnetometer MMC5983MA.
It's support the interupt on the IMU.
This IMU and Magnetometer are also avaible on small demoboards.
Is it possible to create new component on SPI and i2c bus ?
component ISM 330 DHCX
component MMC5983MA.
regards
Stefan
ESP32 Board with ISM 330 DHCX MMC5983MA:
Demoboards IMU ISM 330 DHCX on SPI bus or i2c and a Magnetometer MMC5983MA:
ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
-
- Valued Contributor
- Posts: 760
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Ben
I have the board now. I can compile and let a Led flash.
Just the SD card make a small problem.
I can not init the sd-card.
There is no pin to choose for the card?
regards
Stefan
Fixed Pin on hardware....
I have the board now. I can compile and let a Led flash.
Just the SD card make a small problem.
I can not init the sd-card.
There is no pin to choose for the card?
regards
Stefan
Fixed Pin on hardware....
- Attachments
-
- Snag_1fa82bf8.png (212.58 KiB) Viewed 13255 times
-
- Snag_1fa4d54b.png (90.18 KiB) Viewed 13255 times
-
- Matrix Staff
- Posts: 1746
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Stefan,
The pins for the SD peripheral are fixed and so cannot be altered so I've not exposed them as properties in the component. What cards are you using? not all cards support the 4-bit SD mode. I have some that work well and others that don't work at all. You could also try the 1-bit mode as this should work on more cards.
Looks like a cool little board, I'll see if I can get hold of one.
The pins for the SD peripheral are fixed and so cannot be altered so I've not exposed them as properties in the component. What cards are you using? not all cards support the 4-bit SD mode. I have some that work well and others that don't work at all. You could also try the 1-bit mode as this should work on more cards.
Looks like a cool little board, I'll see if I can get hold of one.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Ben
Yes it's a nice board and working perfect with Flowcode10.
The card is my standard card. I use this kind of card in all my projects.
I have tried with 4bit and with 1bit mode and have tried different card (but always Sandisk)
I can not initialize the card.
regards
Stefan
Card
Here the Logger:
SPARKFUN DATA LOGGER IOT - 9DOF
https://www.digikey.ch/de/products/deta ... 4/19477557
And I also use this multiplexer together with 8 pieces Sensirion SHT45
so it's simple to connect with QWII cable....
8 Channel I2C multiplexer: https://www.digikey.ch/de/products/deta ... gCwgF0BfIA
https://www.digikey.ch/de/products/deta ... 5/17831054
Yes it's a nice board and working perfect with Flowcode10.
The card is my standard card. I use this kind of card in all my projects.
I have tried with 4bit and with 1bit mode and have tried different card (but always Sandisk)
I can not initialize the card.
regards
Stefan
Card
Here the Logger:
SPARKFUN DATA LOGGER IOT - 9DOF
https://www.digikey.ch/de/products/deta ... 4/19477557
And I also use this multiplexer together with 8 pieces Sensirion SHT45
so it's simple to connect with QWII cable....
8 Channel I2C multiplexer: https://www.digikey.ch/de/products/deta ... gCwgF0BfIA
https://www.digikey.ch/de/products/deta ... 5/17831054
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Ben
Ok..... The card is initialising....
I have to set GPIO32 to high, to set power on for the RGB LED and the micro-sd card.
Sorry
regards
Stefan
here is a powerswitch to turn on 3.3V_SW. with the pin PWREN
on the esp32 GPIO32
on the card:
Ok..... The card is initialising....
I have to set GPIO32 to high, to set power on for the RGB LED and the micro-sd card.
Sorry
regards
Stefan
here is a powerswitch to turn on 3.3V_SW. with the pin PWREN
on the esp32 GPIO32
on the card:
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Ben
The 4 bit mode is working fine also with 40MHz clock! cool!
I made a test to append 20'000 string, each string was 20char (and 2byte cr and linefeed)
To test the time I used a hardware pin connected to my Oscilloscope, so it took 1 second
Now my question. would it be possible also to have AppendINTArray and ReadINTArray like the the "spi" FAT?
I use this mostly to store data in binary form.
regards
Stefan
Command for FAT File SD
simple test part: good result all the 20'000 lines:
The 4 bit mode is working fine also with 40MHz clock! cool!
I made a test to append 20'000 string, each string was 20char (and 2byte cr and linefeed)
To test the time I used a hardware pin connected to my Oscilloscope, so it took 1 second
Now my question. would it be possible also to have AppendINTArray and ReadINTArray like the the "spi" FAT?
I use this mostly to store data in binary form.
regards
Stefan
Command for FAT File SD
simple test part: good result all the 20'000 lines:
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Ben
The 4bit Mode is working nice with the CSV writer. Also AppendString is working perfect!
To write binary data is a little problem.
write byte to buffer is not working
and AppendIntarray does not yet exist. I would like to use this AppendIntarray for data.
and one more small question....
Do you or anyone know of any other ESP32 boards with this 4bit connection to the sd-card?
regards
Stefan
The 4bit Mode is working nice with the CSV writer. Also AppendString is working perfect!
To write binary data is a little problem.
write byte to buffer is not working
and AppendIntarray does not yet exist. I would like to use this AppendIntarray for data.
and one more small question....
Do you or anyone know of any other ESP32 boards with this 4bit connection to the sd-card?
regards
Stefan
-
- Valued Contributor
- Posts: 972
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 104 times
- Been thanked: 515 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
I believe the esp-cam boards have 4 bit connection to the SD slot?
I'm trying to get the 1bit mode working with a display SD card (a14 SCK, a15 MOSI and a2 MISO) - but no joy.
I get
Martin
I'm trying to get the 1bit mode working with a display SD card (a14 SCK, a15 MOSI and a2 MISO) - but no joy.
I get
Kicked out as debug. What I'm trying to do might not be possible - but I found this:
E (5884) sdmmc_periph: sdmmc_host_clock_update_command(200): sdmmc_host_start_command returned 0x107
E (6884) sdmmc_periph: sdmmc_host_clock_update_command(200): sdmmc_host_start_command returned 0x107
E (6884) sdmmc_req: handle_idle_state_events unhandled: 00001000 00000000
E (6884) sdmmc_req: handle_idle_state_events unhandled: 00001000 00000000
E (10894) sdmmc_periph: sdmmc_host_clock_update_command(200): sdmmc_host_start_command returned 0x107
E (10894) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (10904) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
Any suggestions to as to whether this is either possible? or what I am doing wrong?At the same time, many LCD breakout board also breakout a full size SD card slot. However, most of them only break out the SPI mode pins. It is not enough to use as 4-bit SD bus mode, but you can still use it as 1-bit SD bus mode by this connection mapping:
LCD -> ESP32
SD_CS -> nil
SD_MOSI -> 15
SD_MISO -> 2
SD_SCK -> 14
Martin
-
- Valued Contributor
- Posts: 760
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 150 times
- Been thanked: 171 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Hi Martin
Yes some of the ESP32 kit has a 4Bit mode.
Only which one works is not clear to me.
In the schematics, connections are marked blue or gray, perhaps because one ESP32 or the other ESP32 soldered assembled
At the moment I continue to use the sparkfun loger. It works well there. I hope the component will be extended a little and allow a simple replacement.
You should be able to use any SD card with 1 bit mode.
Can you let me know which hardware you are using and I will see which pins do what.
not clear to me:
not clear to me:
A way to use 1Bit Mode with 4Bit connection:
Yes some of the ESP32 kit has a 4Bit mode.
Only which one works is not clear to me.
In the schematics, connections are marked blue or gray, perhaps because one ESP32 or the other ESP32 soldered assembled
At the moment I continue to use the sparkfun loger. It works well there. I hope the component will be extended a little and allow a simple replacement.
You should be able to use any SD card with 1 bit mode.
Can you let me know which hardware you are using and I will see which pins do what.
not clear to me:
not clear to me:
A way to use 1Bit Mode with 4Bit connection:
- Attachments
-
- Snag_59b37c5.png (149.05 KiB) Viewed 5450 times
-
- Valued Contributor
- Posts: 972
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 104 times
- Been thanked: 515 times
Re: ESP32 with 4bit sd-card sparkfun iot 9Dof and ISM330 DHCX
Thanks Stefan,
I'm using a wroom board at present with a ili9488 display from Banggood. I'm looking forward to an ESP32 - S3 with parallel display (ili9488) arriving from Ben (thankyou) in the next day or two when I'll fiddle some more.
I also experimented with a separate SD card board - also no joy. So I'm either doing something silly or have trashed a handful of assorted cards..
Martin
I'm using a wroom board at present with a ili9488 display from Banggood. I'm looking forward to an ESP32 - S3 with parallel display (ili9488) arriving from Ben (thankyou) in the next day or two when I'll fiddle some more.
I also experimented with a separate SD card board - also no joy. So I'm either doing something silly or have trashed a handful of assorted cards..
Martin