• Sign In
  • Sign Up
    Loading ...
View All Updates Mark All Read
  • Home
  • Videos
  • Albums
  • Groups
  • Forum
  • Events
  • About
  • Store

Member Info

  • Profile Views: 1,157 views
  • Friends: 0 friends
  • Last Update: December 23, 2018
  • Joined: December 18, 2018
  • Updates
  • Info
  • Forum Posts(1)

Updates

The post was not added to the feed. Please check your privacy settings.
  • Heiko  Klein
    Heiko Klein posted a topic in the forum Support:
    Reading out WeDo 1.0 motion detector with sbrick+ from linux
    I would like to read out the WeDo 1.0 motion detector from linux on raspberry pi (Raspbian GNU/Linux 9 (stretch)). I use the gattool for the bluetooth connection to sbrick plus.
    connection and motor control is working, as well as reading out temperature...  more
    I would like to read out the WeDo 1.0 motion detector from linux on raspberry pi (Raspbian GNU/Linux 9 (stretch)). I use the gattool for the bluetooth connection to sbrick plus.
    connection and motor control is working, as well as reading out temperature and voltage.
    But I am not able to read out the motion detector values. I measured voltage directly at the motion detector and read out that the voltage is changing on C1 pin at the lego connector depending on the distance.
    Reading out the distance using the sbrick software is working fine.
    Accourding to the documentation of the BLE sbrick protocol (https://social.sbrick.com/wiki/view/pageId/11) I did the following:
    (1) Set up periodic voltage measurement on channel 00:gatttool -b device-ID -i hci1 --char-write-req --handle=0x001a --value=2c00
    Using value 2d to read out the voltage measurement setup delivers no value
    gatttool -b device-ID -i hci1 --char-write-req --handle=0x001a --value=2dgatttool -b device-ID -i hci1...    less
    • December 23, 2018
View More
Loading ...

Info

Forum Posts

  • December 23, 2018 2:20 PM CET
    in the topic Reading out WeDo 1.0 motion detector with sbrick+ from linux in the forum Support
    I would like to read out the WeDo 1.0 motion detector from linux on raspberry pi (Raspbian GNU/Linux 9 (stretch)). I use the gattool for the bluetooth connection to sbrick plus. connection and motor control is working, as well as reading out temperature and voltage. But I am not able to read out the motion detector values. I measured voltage directly at the motion detector and read out that the voltage is changing on C1 pin at the lego connector depending on the distance. Reading out the distance using the sbrick software is working fine. Accourding to the documentation of the BLE sbrick protocol (https://social.sbrick.com/wiki/view/pageId/11) I did the following: (1) Set up periodic voltage measurement on channel 00:gatttool -b device-ID -i hci1 --char-write-req --handle=0x001a --value=2c00 Using value 2d to read out the voltage measurement setup delivers no value gatttool -b device-ID -i hci1 --char-write-req --handle=0x001a --value=2dgatttool -b device-ID -i hci1 --char-read --handle=0x001a   (2) Query ADC for voltage mesurement on channel 00 gatttool -b device-ID -i hci1 --char-write-req --handle=0x001a --value=0f00gatttool -b device-ID -i hci1 --char-read --handle=0x001a This delivers value: 00 00 Value does not change no matter what distance on motion detector.   Any help/ suggestions would be highly appreciated.  
Previous
Next
Copyright ©2025  -  Privacy  -  Terms of Service  -  Contact  - 

 

SBrick is carried by Kurbli Kft. LEGO®, the LEGO® logo, the Minifigure®, DUPLO®, the DUPLO® logo, BIONICLE®, the BIONICLE® logo, LEGENDS OF CHIMA®, the LEGENDS OF CHIMA® logo, DIMENSIONS®, the DIMENSIONS® logo, the FRIENDS® logo, the MINIFIGURES® logo, MINDSTORMS®, the MINDSTORMS EV3® logo, MIXELS®, the MIXELS® logo, NINJAGO®, the NINJAGO® logo, NEXO KNIGHTS®, and the NEXO KNIGHTS® logo are trademarks and/or copyrights of the LEGO Group, which does not sponsor, authorize or endorse this web site. ©2018 The LEGO Group. All rights reserved.

Share