So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Luke Fold
#69483 <Edit> Just updated the name of this post to better reflect the content- I was originally looking to pay somebody to solve my problem- but there has been some great help, and I'm currently pushing to get the solution worked with with this assistance and my own trial and error. Once solved, I'll post all info and patches here for others! ~Fold

Hi all

I'm a noob with Arduino and ESP8266 and well over my head with this, but what I want is quite straightforward- I'm hoping someone out there is willing to help for some extra cash:

I need to get 9DOF Sensor (accellerometer / gyro / magnetometer) data streamed wirelessly- either Bluetooth Serial or Wifi UDP stream. I would then access this stream from Max/MSP, which is where I actually know what I'm doing, then my project can begin! I have purchased several Arduino-compatible boards and sensors in an attempt to get this data from the sensors, but I haven't been able to acheive wireless transmission yet.

My proposal is that you help me with the Hardware combination / Arduino sketch needed get the sensor data into Max/MSP wirelessly, only via USB serial interface.

I have bought several combinations of hardware in an attempt to acheive this- hoping someone would develop a sketch, and tell me which combination to try with your sketch- or suggest alternative hardware. I currently have the following items (all Sparkfun):
-----------------
SparkFun ESP8266 Thing - Dev Board
https://www.sparkfun.com/products/13711

SparkFun 9DoF Sensor Stick
https://www.sparkfun.com/products/13944

SparkFun 9DoF Razor IMU M0
https://www.sparkfun.com/products/14001

SparkFun Bluetooth Mate Gold
https://www.sparkfun.com/products/12580

Lithium Ion Battery - 1Ah
https://www.sparkfun.com/products/13813
----------------

I've also had a look at the ESP Localiser project:
viewtopic.php?f=161&t=13016
Although I don't need barometric data- this is essentially the sort of thing I'm after, and I7d be willing to buy one of these, but still not confident I could make it do what I need!

So far I can get sensor data from usb connection with ESP dev board + 9dof sensor stick, can also get sensor data from usb with 9dof razor imu- but I don't have the arduino programming skills to get data wirelessly with either hardware setup. I have implemented all the basic librarys etc that come with the above boards, I just need them taylored to print the sensor data wirelessly.

Extra: If we got the above working, there would be one extra job- this would be paid extra also: the task would be to receive a data stream from Max/MSP (via serial or UDP) to control voltage of one of the outputs of the arduino, which would be used to control an LED- brighter with higher value, dimmer with lower value.

If you are interested- please provide a quote to achieve the above- I am not without some skills to help make this happen- I just don't have the arduino code know-how to achieve the hardware side. This is all in aid of an Art / Education event for Children- it is not a commercial product of any sort.

If you are interested in the bigger picture- see link below, but the help I'm after is strictly limited to the above specification.
https://pozible.com/project/204131

Previously I achieved this functionality using an ios device transmitting it's acc/gyro data, but I need to move away from this....

Many thanks for any nudges in the right direction!

~Fold
Last edited by Luke Fold on Thu Aug 31, 2017 6:50 pm, edited 1 time in total.
User avatar
By Luke Fold
#69495 @Schufti
Apologies as I'm a new User it appears I'm unable to use Private Messaging.

Thanks for responding- here are the answers to your Qs:
Have you allready set up the Arduino IDE with esp support?
Did you allready try to compile/flash some of the examples?
>Yes- I've achieved the above, and can make the ESP8266 flash led on/off as per setup guide etc.

Is there any special "datagram" for udp you need?
Would it be sufficient to "broadcast" the data to a certain port or do you prefer a one2one connection?
>If I can get the data coming in over UDP- I'm happy to work with any format, as I can do complex string manipulation and sorting with Max/MSP on the recieving end. I don't mind if its Multicast or Unicast- whatever is easy to implement / reliable.

Many thanks again for any and all assistance!

~Fold
User avatar
By rudy
#69501 I took the ESP Localiser and modified it to send the data via UDP. I commented out the barometer code. If you want to try then take the Localiser code and replace the esp_10dof.ino file with the following. You will need to put your router info and the receiving device IP and port.

https://gist.github.com/RudyFiero/1d754 ... 72cfcfa515

If you want it to act as an access point I can change it. I am sending the data as the ESP Localiser does but I have not used anything to separate the lines. It can be easily changed. The following is what it now sends. I don't have one of those sensors so the data is all zeros.

Code: Select all Gyro: 0.00, 0.00, 0.00 deg/s  Accel: 0.00, 0.00, 0.00 g  Accel: 0.00, 0.00, 0.00 gauss


You can see the output on a program like PacketSender. https://packetsender.com/

EDIT:

I forked the ESP Localizer and added the modified .ino file with the UDP data sending. https://github.com/RudyFiero/esplocaliz ... re-arduino

I looked at the link for the project. Nice. I had thought that this kind of things should be more available. I was thinking that this technology should be the next leap from the Theremin. That, combined with a computer generated environment, would be interesting to use as performance art. I like the idea of having something like this for children. A new learning experience.