I’d like for the angular distance away from north (which I think might come from yaw), made from how a part of a dance costume is pointing (which I think might be done with an electronic compass, or magnetometer), to control how many of 15 to 25 costume LEDs turn on. I’m not sure whether it would be better to correct readings with hard and soft iron corrections, or sensor fusion, and I don’t know how to estimate whether it would be better to use both, with an example sketch. As far as I know, basic sensor fusion (for beginners, like me) can make corrections using three things (an accelerometer, a gyroscope, and a thermometer), but I’m not sure. I’d like for the costume to be able to be put in a washing machine (so it needs to be waterproof) and a clothes dryer (so it needs to be somewhat temperature proof), so I think I need an electronic-textile, which I think is also called an e-textile. I think Adafruit calls their e-textiles FLORA, and SparkFun calls theirs LilyPad. The closest thing I can find is Adafruit product ID 2020 (the FLORA 9-DOF Accelerometer/Gyroscope/Magnetometer - LSM9DS0 - v1.0), but I can’t tell whether there is an example sketch for the 2020 that does sensor fusion, and it is no longer stocked. Thank you.
Magnetometers always need to be individually calibrated before they can be used as electronic compasses. The gyro is not needed, nor is sensor fusion needed to make a tilt-compensated compass, giving the yaw angle from North.
There are now several MCU boards that have a 9DOF sensor built in, which is all you would need for that (e.g. the Nano BLE Sense).
It is very unlikely that a circuit put together on a hobby bench would survive going through a clothes washer and drier, especially one with batteries, so consider a removable module. Adafruit is a good resource for wearable electronics.
Thank you.
The most I’ve done was use Qwiic and STEMMA QT, connect batteries, and modify and combine their example sketches, which didn’t always work, but sometimes did. If one of the ways I can work my way up to being able to use the Nano BLE Sense is different from other ways of working my way up (with Arduino, but not necessarily with Nano BLE Sense), what is it?
What is that? I think guessing may lead to the X-Y problem.
There is a tutorial (Accessing Magnetometer Data on Nano 33 BLE Sense Rev2) but, I think, instead of being for the Earth’s magnetic field, it is for a laptop charger, an electric kettle, a toaster, a TV, and a coffee machine.
Something that may be removed from the costume, so it doesn't have to go through the washing machine and clothes drier.
Thank you! If a stackable will work, is it the best?
Even if we can’t figure out whether a stackable is best, will a stackable work, or will clothes driers not dry the stackable?
Does that mean those two can be combined?
If I understand correctly, one should be a 9DOF. What is it best for the second one to be?
Maybe the simplest version should be made of four parts (not two, as I might have made it seem like, above); (first) the Arduino Nano 33 BLE Sense Rev2 9DOF, (second) something I’m still looking for (to make it wearable, and a removable module), (third) one or more Adafruit wearable FLORA LEDs, and (fourth) a battery holder. What is the second one, the one I’m still looking for, to make it wearable?
Additionally, I don’t have any experience with FLORA and soldering, and I don’t know whether I’ll need to, and whether I’ll need experience with anything else (that I don’t know about). Would you please recommend the simplest and least expensive things I can use to gain the experience I need, which might (and might not) include a FLORA pack and a soldering kit? I’d also like to know what I’ll need for three dance costumes that I’m trying to describe in this topic, so the pack (and other things) might have to be larger.
Also, what are names of parts that have been described but not named, in this topic?
Finally, while I am grateful for the total of two posts by the total of one member (besides myself) in this topic, I wonder whether there would be more if I didn’t miss something in the “How to get the best out of this forum” topic. Did I miss something in it?
Thanks.
Maybe it would help if someone came up with one or more examples (like in tutorials) of simpler uses of the same type of electronics, and two parts (that make up a removable module) will be described in the examples. I’m only guessing there will be two. I’m guessing there will only be one name for both, when referring to both (of the two) at the same time.
For example, take a watch. Even though two ways of using a watch might make it a wearable, maybe I can only use a third way. First, if it is a water-resistant watch then maybe it can withstand a shower. But that won’t work in my case, as mentioned above. Second, I can take the watch off before I go into the shower, but that won’t work either if I want to use the watch (on my wrist) with electronically conductive thread that connects the watch to a sensor (on a chest strap) that senses my heartbeat, while my heart reacts to the changing temperature of the water. Third, suppose the watch can actually sense sweat, and the part of the watch that senses sweat is the only part that can’t withstand the shower, so the part that senses sweat has to be removed from the rest of the watch, before it (the part that doesn’t sense sweat) is brought into the shower. Outside of the shower, at the moment when the sweat sensor is brought back to the rest of the watch, what closes the circuit and holds the two together? So is there something like that for my costume?
Hi @Power_Broker,
You were helpful with an earlier version described in the Arduino “Using simple feature extraction to control lights” closed topic, at https://forum.arduino.cc/t/using-simple-feature-extraction-to-control-lights.
- Post #10, in this topic, summarizes this version more briefly than post #1.
- Post #12, in the second paragraph, is an example of the closest thing I can think of.
- Post #11 is a request for help developing the skills I’ll need, even while I don’t know what parts I’ll need.
Thanks.
Because the Nano BLE Sense was recommended (to make a removable module), I’m guessing (1) STEMMA, (2) STEMMA QT, and (3) Qwiic won’t work; even though (in my searches) some that looked (to me) like one of those three showed up, along with some that looked like
Is that guess right? Thank you.
Hi @build_1971,
You were also helpful with the version mentioned in post #13.
Would someone please give me an example?
I think the best way so far is to put a 9-DOF (magnetometer included) board at the bottom of a box and fill the box with epoxy potting, to make it waterproof. I was told making a vacuum chamber might be useful, but I’m not sure where (in the box) to put it, how to make it, or why. Adafruit FLORA sewable threads could be connected to the board, or wires connected to the male end of STEMMA, STEMMA QT, or Qwiic cable; I think. Right now, my biggest problem is with the way the threads will come out of the flat epoxy top. First, I want them to be perpendicular to the top. Second, the distance between any thread and the one it is closest to should be the same as the distance between any other two (that are closer to each other than any others, with the exception of if there is a thread on its other side). How do I do this? Or is there a better way than all of this? Thank you.
That may have been a mistake. I don’t know what should come out of the top. But it has to be very easy to use.
This is for the dance costume, that uses yaw from a magnetometer on a dancer’s limb to control what costume lights do, according to how much the limb points towards an important location. To help avoid compatibility problems, would you please help me find the chip family of FLORA - Wearable electronic platform - v3 (product ID: 659) at https://www.adafruit.com/product/659, such as by telling me whether there is a better way to search than using, “What is Adafruit FLORA platform v3 chip family?”
Your link:
links to:
... which lists an out-of-stock:
...that uses a LSM9DS0. But Adafruit also carries an updated LSM9DS1 on a couple breakouts: