Giter VIP home page Giter VIP logo

ev3-huskylens-stuff's Introduction

EV3 HuskyLens Stuff

An adapter allow HuskyLens communication with LEGO Mindstroms EV3 (support SPIKE/RI).

How it works

The EV3/SPIKE/RI using LEGO UART protocol to communicate with sensors, and HuskyLens provide I2C and UART to transmit data, so we use an Arduino as an "Translator", to convert HuskyLens data to LEGO UART format.

Hardware

We use an Arduino Pro Mini, and a simple PCB to connect HuskyLens pins and EV3 ports.

  • Arduino Pro Mini 5V, 16 MHz with baud 115200 for EV3
  • Arduino Pro Mini 3v3, 8 Mhz with baud 57600 for SPIKE/RI
  • HuskyLens and Arduino communicate with baud 9600 (swuart)

Using avrdude or XLoader to upload firmware hex file to your Arduino Pro Mini, if you using ICSP to program your arduino, you can choose "_with_Bootloader" one hex file to programming to keep the bootloader there.

For XLoader users: You can add this line into device.txt to upload bin file to Pro Mini. (Tested, works fine.)

"Pro mini(ATmega328);m328p;stk500;57600;"

Software

Go to release page to download EV3-G blocks, the block will return following info:

  • For a block:
    • Connection status see Connection Status Code below
    • ID ID of Block
    • X X Center of Block
    • Y Y Center of Block
    • W Width of Block
    • H Height of Block
  • For an arrow:
    • Connection status see Connection Status Code below
    • ID ID of Arrow
    • x1 X Origin of Arrow
    • y1 Y Origin of Arrow
    • x2 X Target of Arrow
    • y2 Y Target of Arrow

Connection Status Code:

Code Means
9 Adapter connected but HuskyLens not.
8 Connection is OK but no objects learned.
7 Connection is OK and objects is learned, but no objects appears.
1 Objects found.
0 Port not connected or data loss.
----- Port not connected or data loss.

Documents used

Disclaimer

LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this software. The LEGO Group and contributors to this repo are not liable for any loss, injury or damage arising from the use or misuse of the provided code or hardware.

ev3-huskylens-stuff's People

Contributors

a10036gt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

ev3-huskylens-stuff's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.