Sending analog data wirelessly (3 axial Accelerometer)

Gibson486

Joined Jul 20, 2012
360
Personally, I would choose ST. They have STM32 with wireless. Plus they have accelerometers and all the support you will need for the STM32 and accelerometers. You will not need an ADC.

https://www.st.com/en/microcontrollers-microprocessors/stm32-wireless-mcus.html

https://www.st.com/en/mems-and-sensors/accelerometers.html

I agree. I like STM32, and I actually think they are the platform that is going to be the bigger player going forward. That being said, I love the Teensy as well. The guy that made it is a pretty cool guy. In terms of learning, Teensy will be the easiest to get off the ground running, but you will be plagued with the the bad stuff that an arduino software brings with. It is more of a concern when you are scaling up, so if you plan to just be solo with it, then it is not a concern. The STM32, on the other hand, it will require some work up front as you need to familiarize yourself with their software API. It is not as easy the arduino software stack and the included demos are kind of horrific and you need some understanding of how some stuff works in order to make the drivers work. However, scaling up would be MUCH easier.
 

Ya’akov

Joined Jan 27, 2019
10,239
Personally, I would choose ST. They have STM32 with wireless. Plus they have accelerometers and all the support you will need for the STM32 and accelerometers. You will not need an ADC.

https://www.st.com/en/microcontrollers-microprocessors/stm32-wireless-mcus.html

https://www.st.com/en/mems-and-sensors/accelerometers.html
In the original thread...

I have an accelerometer (KS943B100) that I want to read its value wirelessly, in real-time.
So the discussion was getting the data from that accelerometer.
 

MrChips

Joined Oct 2, 2009
34,820
I agree with what @Gibson486 has said.

Are you looking for the easy solution or are you looking for professional support and scaling up while looking ahead.

I have a 3-axis wireless accelerometer up and running using STM32, IIS3DWB MEMS accelerometer, and nRF24L01+.
That was before ST introduced their wireless MCUs.

What is your application?
 

Thread Starter

jadkh

Joined Apr 2, 2021
22
Hello everyone,
Thank you for your constructive comments.

It is more of a concern when you are scaling up, so if you plan to just be solo with it, then it is not a concern. The STM32, on the other hand, it will require some work up front as you need to familiarize yourself with their software API.
Are you looking for the easy solution or are you looking for professional support and scaling up while looking ahead.

For me, I would scale up and go for the STM32, but if that needs a lot of time I will go for the Teensy. I barely have 4 months to migrate the wired system (3 axial IEPE accelerometer, NI cDAQ-9234, NI cDAQ-9171, LabVIEW) to a wireless one, following the norm.
I do want a sustainable solution but I lack time. So do you advise me to go for the STM32? Or do I need more than 3/4month?
I need only to transmit in real time the value of the accelerometer and use it in the already built LabVIEW program.
I think the programming part will be the easiest part because I need to match the connectors, build the filter.. so the amount of time will be more on the electronics part.
Now it is crucial that I select the components

I have a 3-axis wireless accelerometer up and running using STM32, IIS3DWB MEMS accelerometer, and nRF24L01+.
That was before ST introduced their wireless MCUs.

What is your application?
I liked the fact that ST introduced wireless embedded in them. Is it in the new STM32 or another?
I want to design a commercializable product.

If 8bit resolution is enough for the ADC, one can also use an ESP32 with integrated WiFi- and BT-module.
I need 12 bit resolution ADC
 

bobcroft

Joined Aug 22, 2011
12
I would suggest using an ESP 8266 or ESP32 using the ESP-now WiFi link which is direct device to device, as in doesn't need a router. I would use an I2C ADC such as the ADS115. There are ready made libraries for all you want to do using either the Arduino IDE or platformIO. The latter IDE's are not the only ones but are probably the most commonly used.
 

Thread Starter

jadkh

Joined Apr 2, 2021
22
I would suggest using an ESP 8266 or ESP32 using the ESP-now WiFi link which is direct device to device, as in doesn't need a router. I would use an I2C ADC such as the ADS115. There are ready made libraries for all you want to do using either the Arduino IDE or platformIO. The latter IDE's are not the only ones but are probably the most commonly used.
The data rate of the ADS115 is too low for my application. Why should I use an external ADC when the ESP32 has a powerful 12 bit 200KSPS ADC.
If I use 3 channels ADC, the sample rate will be divided by 3 if I sample simultaneously ?
Thank you
 

nsaspook

Joined Aug 27, 2009
16,330
The data rate of the ADS115 is too low for my application. Why should I use an external ADC when the ESP32 has a powerful 12 bit 200KSPS ADC.
If I use 3 channels ADC, the sample rate will be divided by 3 if I sample simultaneously ?
Thank you
If the internal ADC meets all requirements then use it. If there is a single ADC then yes the sample rate per-channel will be divided. The alternative is to pick a chip with several independent ADC modules and S/H frontends so you can do synchronized signal sampling and parallel conversions of data.
 

Thread Starter

jadkh

Joined Apr 2, 2021
22
If the internal ADC meets all requirements then use it. If there is a single ADC then yes the sample rate per-channel will be divided. The alternative is to pick a chip with several independent ADC modules and S/H frontends so you can do synchronized signal sampling and parallel conversions of data.
Thank you for your reply
The ESP32 has a 12bit, 200KSPS ADC. How to know if the chip can do simultaneous sampling? Or is it multiplexed?
Then if simultaneous sampling is possible I would get =~ 66KSPS?
Is this ADC that does the job, compatible with ESP32?
Your help is appreciated
 

nsaspook

Joined Aug 27, 2009
16,330
https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/

Looks like it has two ADC modules but only ADC 1 is usable with WiFI enabled. The TI chip is a dual ADC but the controller data output is parallel format.

I don't know why you need simultaneous sampling (it's usually needed to preserve phase relationships between the sampled signals) but if you really do, the ESP32 class chips are not really a good solution.

For example on a chip that I've used for three-phase motors control we have a much more advanced ADC architecture for simultaneous sampling, simultaneous coupling and auto triggering.
https://www.microchip.com/wwwproducts/en/PIC32MK1024MCM100

  • Advanced Analog Features
    • 7x 12-bit 3.75MSPS ADC Cores up to 42 analog inputs
    • - Sum of all individual ADC's combined, 25 Msps in 12-bit mode or 33.7 Msps in 8-bit mode
    • Four 100Mhz Op amps
    • Five analog comparators
    • Up to three 12-bit DACs
 
Top