Giter Site home page Giter Site logo

wtc_project-xmas-usb-ornament's Introduction

Wing's XMAS Ornament

** ISSUE - Design Seems To produce non-working unit. Investigating... **

  • Something for the holidays.
  • Made using SMT/SMD components so most/all parts on one side.
  • Added header pins on revrse side for adding batteries or different UART(s).
  • Added USB-A PCB top to allow plugging into a laptop or computer USB port or to power with a USB-A extension cable.

JLCPCB Holiday Contest Entry

This is a project I'm also submitting to the JLCPCB.com Holiday Contest!

Hardware

Components

  • CH340G USB-to-TTL interface chip
  • AMS1117-3v3 linear voltage regulator
  • QMA7981 IMU in I2C mode
  • STM32F030F4 - Arm M0 MCU

STM32

  • 12Mhz External OSC
  • Boot0 - CH340G's CTS (pin 9) (pulldown via 4.7K, but can be brought HIGH by CH340G by toggling CTS)

I2C

  • PA9 - I2C SCL (connects to QMA7981's SCL)
  • PA10 - I2C SDA (connects to QMA7981's SDX)
  • PB1 - Motion Interrupt Signal ( connects to QMA7981's INT2 )

UART

  • PA2 - UART-TX (connects to CH340G's RX)
  • PA3 - UART-RD (connects to CH340G's TX)

LED Driving Lines

  • PA0 - A (CharliePlexed LED Lines)
  • PA1 - B (CharliePlexed LED Lines)
  • PA4 - C (CharliePlexed LED Lines)
  • PA5 - D (CharliePlexed LED Lines)
  • PA6 - E (CharliePlexed LED Lines)
  • PA7 - F (CharliePlexed LED Lines)
  • PA13 - G (CharliePlexed LED Lines)
  • PA14 - H (CharliePlexed LED Lines)

QMA7981

  • AD0 - Sets address. Routed to GND for 0. 0x12H
  • INT2 - Interrupt signal output. Routed to PB1 on MCU

CH340G

  • TXD - To MCU RXD
  • RXD - To MCU TXD
  • CTS - To MCU BOOT0 for boot mode selector
  • 12Mhz External OSC

Software

Building & Installing Arduino Code

The code is setup as a platformio project. To build:

# To compile/build
pio run

# To upload (Note, assumes serial upload)
pio run --target=upload

wtc_project-xmas-usb-ornament's People

Contributors

wingtangwong avatar

Stargazers

 avatar

Watchers

 avatar  avatar

wtc_project-xmas-usb-ornament's Issues

What is the IMU used for?

This looks really cool. Thanks for sharing it, and I do see it might have issues.

I'm curious what you were going to do with the IMU.

BTW, did you find this IMU easy to work with? I have experience only with the 6050 and the 6886.

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.