Go Down

Topic: Adding a custom external sensor (with pins) to Science Journal for logging. (Read 678 times) previous topic - next topic

re404

Oct 28, 2020, 04:11 pm Last Edit: Oct 28, 2020, 05:16 pm by re404 Reason: valuable additions
Hi all,

I'm trying to make an extra sensor input show up in the list of inputs in the Science Journal App.


My goal is to log (at least) 4 of these custom external inputs simultaneously.

I'm fiddling making changes to the example Nano33BLESenseFirmware to, for example, add values of a connected Grove High Temperature Sensor.

I added on line 11:
#include <High_Temp.h> /*ADDED*/

First I tried things like adding:
BLEFloatCharacteristic         groveHTSCharacteristic     (SCIENCE_KIT_UUID("0020"), BLENotify); /*ADDED*/

and at the end:

if (groveHTSCharacteristic.subscribed()) {
  float htemp = ht.getThmc();
  groveHTSCharacteristic.writeValue(htemp);
}



That didn't work :)

After that I managed to get values form my Grove High Temperature sensor by temporarily abusing the pressureCharacteristic  :smiley-twist: :


if (pressureCharacteristic.subscribed()) {
 float pressure = ht.getThmc(); /*ABUSED!!!!!*/
 pressureCharacteristic.writeValue(pressure);
}



That WORKED!




But: What is the (or a more) proper way to add sensors to the Science Journal list?

Thanks! Cheers, Remko

re404

With the Google version this seemed to be possible by adding a custom type.
See: https://learn.sparkfun.com/tutorials/getting-started-with-the-sparkfun-inventors-kit-for-googles-science-journal-app/all



Is this custom type not supported (yet), in the new (iOS) Arduino Science Journal app?

re404

Today I received an answer from Arduino Technical support:

Quote
Ignacio Herrera (Arduino)
Oct 29, 2020, 9:10 GMT+1

Hello Remko,

Thank you for contacting Arduino Technical Support.

Your project is really interesting. This custom sensor feature is not available thus Arduino is unable to offer support to develop it.

I suggest you wait for other user interested in the project to reply and assist you with it. You can also reach out on Discord Arduino server, maybe you find partners there too.

I hope this was useful.

If you have any further issues or queries, please do not hesitate to contact us again.

Kind Regards
Ignacio Herrera
Arduino Support Team

v_chinnici

Hello re404,

I am Valentina, Product Manager of the Arduino Science Journal. Thanks for posting this here. 

We are currently working on the release of other important features that will allow you to better work and handle data. After that we would consider your request. We are a small team working on it, but we will look into your request and consider it for future implementation. We have something similar coming soon, so stay tuned! 

Also, if you would like to contribute to the Science Journal the app is open source! Also we would consider having you as a beta tester if interested. You can contact me via DM here on the forum. 

We really hope you like the app overall! 

Best,
Valentina Chinnici
Arduino
Product Marketing Manager (Education)

v_chinnici

P.S. The raw sensor is currently available with the Science Kit ;) 
Valentina Chinnici
Arduino
Product Marketing Manager (Education)

re404

Hi Valentina,

Thanks! For the project (educational, I'm a teacher) I was working on I managed to get something working in a hacky way, that I'm still planning to share on projecthub.

For the next class / project where I'll use Science Journal I'll dive into the improvements.

Of course I'd like to test the beta! (I'll DM you.)

The Science kit includes the MKR WiFi 1010, right? So does this mean that the app offers more options when it's connected to a MKR WiFi 1010? Do you know why it was chosen to not yet offer this for the Nano33BLESense pins (yet)?


The app is great by the way. My students enjoyed working with it!

Let's make it even better together!



Cheers!
Remko

v_chinnici

I am looking forward to hearing more from you and your classroom. What age group are you teaching to? 

The Science Kit was born before the Nano BLE sense existed, however we are working to expand the range of experiments you can run with the BLE Sense. :) 

Happy new year! 
Valentina Chinnici
Arduino
Product Marketing Manager (Education)

Go Up