Giter VIP home page Giter VIP logo

handy-clicker's Introduction

handy-clicker

Circuitpython HID emulator device with smart home functions

handy-clicker

Description:

Handy clicker is raspberry pi pico based device with additional keyboard for fpv cameras.

Example keyboard --> LINK <--

How does it work?

OSD camerea pilot on circuitboard got different resistors combined with buttons. So if you push "UP" button there occour e.g. 6000 m ohm when down e.g 2000 m ohm.

I connected keyboard to pico pin's no 26 which is used to read analog values. After that I measured all values corresponding to each button and save results.

Remember when want read analog values must add additional resistor.

Using python API tuyapy it's possible to controll sonoff devices like power switch connected with night lamp.

Remember ! Insert code.py to raspberry pi pico

Whole tutorial : HOW READ ANALOG VALUE

Create class object

api = TuyaApi()
    api.init(USERNAME, PASSWORD, COUNTRY_CODE)

Code to discover all devies

    for device in api.get_all_devices():
        id = device.object_id()
        print(id)        
                

Example operation

api.get_device_by_id("***").turn_off()
api.get_device_by_id("***").turn_on()

Functions:

  • Enter button - play Boney M. - Rasputin
  • UP/DOWN button - turn off/on sonoff switch
  • RIGHT button - Type import statement from txt file (ansi)

Libraries and software:

  • CircuitPython - 6.3.0
  • Python - 3.8
  • tuyapy - api for smart home devices
  • optparse - 1.5.3 - to use flags in cmd

Wiring

Alt text

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.