External Sensors on Thingy:52 #7322
Replies: 1 comment
-
Posted at 2018-10-26 by @gfwilliams Good question! So in terms of IO you have:
On the rear of the thingy D2/D3/D4 are labelled as So basically all you need is to use Posted at 2018-10-27 by Bernd Thanks for the swift reply, Gordon! Posted at 2018-10-27 by @allObjects ...fortunately... or unfortunately... it all depends... first for you, latter 'not-for'-for @gfwilliams... but it speaks for what @gfwilliams does: powerful solutions easy to apply! So fare I stayed with having Espruino only on Espruino boards and could abstain from putting Espruino onto something else but Espruino board... but with my most recent tinkering - Espruino on the mini 10 x 10 [mm] ESP-09 - if feel like a traitor... :/ The fact that I was unable to update my aged ESP-09 with new AT version from espressif... but it was a breeze to get Espruino onto it and it worked right of the bat (after properly connecting CP_PD), speaks even more for the quality and ease of use what comes out of @gfwilliams's 'Schmiede'. Posted at 2019-06-27 by zeromem Hi! I was unable to connect on the rear SCL/SDA. Posted at 2019-06-27 by Robin Thr 2019.06.27 Hi @zeromem, congratulations on your successful flash attempt, and welcome to the exciting IoT world using Espruino!
Were you aware of the search box at page top right of the site? I just typed in and found example code and tutorials for all the sensors requested: Posted at 2019-06-27 by zeromem Hi Robin, Posted at 2019-06-27 by zeromem On my rear port (P7) I have: Please help my with I2C setup. Posted at 2019-06-27 by Robin The setup tutorial example is in the link, third from the end in post #6 Posted at 2019-06-28 by @gfwilliams @zeromem I know SDA/SCL are labelled on the back, but as you noted they're shared with the accelerometer which could cause you issues (eg. the accelerometer is off by default so it may then inadvertently 'clamp' the I2C signals and stop them working). As I understand it, pins P0.02/3/4 (corresponding to D2/3/4) are completely unused, so I would strongly suggest you use those. To avoid any confusion try using the software I2C as well, and hopefully it'll work:
Posted at 2019-07-08 by zeromem Thank you all. Attachments: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-10-26 by Bernd
Hi All,
i was hoping to be able to use Espruino to query some external sensors on Thingy:52
The basic idea is to connect an external analogue sensor, say soil moisture, to Thingy and let Thingy broadcast the sensor readings.
Very much like a combination of what is done with the Pico here to connect an external light sensor: https://www.espruino.com/Pico+Light+Sensor and the Thingy here to let it broadcast sensor values: https://www.espruino.com/Pixl.js+Wireless+Weather+Station
The Espruino-Thingy page at https://www.espruino.com/Thingy52#on-board-peripherals
seems to suggest this is possible (Section "On BOard Peripherals") via
// External IO outputs
IOEXT0/1/2/3
However, I can find no further documentation/ tutorials on how to actually read the sensor values.
Any pointers to further information would be very much appreciated!
Thanks.
Bernd
Beta Was this translation helpful? Give feedback.
All reactions