Grove for micro:bit

Hello,



I use grove sensors/shield for arduino. But for some reasons I wish to use micro:bit

(i’m a teacher, my students knows about python but not C)



As I read the descriptions, it seems that the grove shield and sensors shows only javascript/makeCode examples for using grove sensors on micro:bit.



So, how to use my grove sensors with python on a micro:bit device ???

Hi,



First of all, appreciate your effort you are taking for your students. :slight_smile:



You can use all the sensor with micro:bit too, but we need to make a simple tweak when we want to use the grove sensor. suppose we want to use a Grove DHT sensor .



As a first step, know about the pins of your module.

[attachment=1]connect_arduino.jpg[/attachment]

5V => Red

GND => Black

Not Conencted => White

D2 => Yellow



here, the important pin is Data Pin D2(yellow),

[attachment=0]QQ截图20180919094348.png[/attachment]

here in this programme, The data pin needs to connect the pin P0, and connect the Sensor GND(Black) to Micro:Bit GND and Sensor 5v (Red) to Micro:Bit 5v/VCC.





And another way is you can use Grove Shield for micro:bit , then you don’t need to spend much time, just plug and play.



Happy making, and let me know if you need to know more.