Naro BLE33 Sense
Posted: 02 Jul 2023, 04:29
To pass the time on wet cold windy NZ winter days when we can't go flying I've acquired a naro BLE33 Sense.
This little gem detects movement about x,y & z axies , temperature , humidity, colour, air pressure and a few other things.
There is an example in the BLE library which displays the various outputs on the serial monitor. As you move the thing around you can see the x,y,z values changing between -1.0 and +1.0.
I thought what a great idea to hook this up to anNRF24 and control 2 channels with it (Don't fancy my chances of ever flying a model with it).
By combining this example with the Arduino servo example I've managed to make a 2 axis servo controller using the x & y outputs .
Now I'm wondering if anyone out there has been playing around with a BLE33 as I have a couple of problems.
1. It only works when the serial monitor is open
2. I can't use the map function Ch1val = map(x,-1,1,45,135); This results in a constant value of 90 (servo centered).
However Ch1val = ((x*45)+90); works.
Enjoy your northern summer
John
This little gem detects movement about x,y & z axies , temperature , humidity, colour, air pressure and a few other things.
There is an example in the BLE library which displays the various outputs on the serial monitor. As you move the thing around you can see the x,y,z values changing between -1.0 and +1.0.
I thought what a great idea to hook this up to anNRF24 and control 2 channels with it (Don't fancy my chances of ever flying a model with it).
By combining this example with the Arduino servo example I've managed to make a 2 axis servo controller using the x & y outputs .
Now I'm wondering if anyone out there has been playing around with a BLE33 as I have a couple of problems.
1. It only works when the serial monitor is open
2. I can't use the map function Ch1val = map(x,-1,1,45,135); This results in a constant value of 90 (servo centered).
However Ch1val = ((x*45)+90); works.
Enjoy your northern summer
John