Code Monkey home page Code Monkey logo

osom's Introduction

Open speedomenter WIP

OSOM (read as ˈôsəm) is the acronym of Open Speedometer.

Architecture

The new architecture is the following:

Clinet <==BLE==> Master <==2.4GHz==> Slave

where:

  • Master: CC2541 <==UART==> PIC <==SPI==> nRF24L01+
  • Slave: PIC <==SPI==> nRF24L01+

The client is a device that must be compatible with BLE (Bluetooth 4.x).

The CC2541 (aka NP, aka Network Processor) will run a standard firmware that is in charge of providing a bluetooth connection to the PIC.

Master and Slave will exchange messages over a custom, light-weight, protocol.

Specifications

  • Microcontroller: PIC32MX274F256D @72MHz (TODO verify)
  • Communication:
    • Bluetooth (master only): HM10 Bluetooth 4.2 Low Energy
    • Wireless: nRF24L01+ @2.4GHz
  • Power:
    • LiPo 1s Battery, 1200/2000 mAh (not choosen yet)
    • 5V provided by micro USB, 500 mA MAX
  • Sensor: custom made 650nm modulated laser sensor
  • Laser source: Red diode laser, 650nm @5mW

PIC PIN assignment

Bluetooth (master only)

PIN I/O PPS Function Note
6 IN RPB2 U1RX PIC <== NP
7 OUT RPB3 U1TX PIC ==> NP

nRF24L01+

PIN I/O PPS Function Note
21 IN RPB10 INT1 Interrupt generated by nRF24L01+
22 OUT RPB11 SDO2
23 OUT - CS RB12
24 IN RPB13 SDI2
25 OUT - CE RB14
26 OUT RPB15 SCK2

Debug

PIN I/O PPS Function Note
4 OUT RPB0 U2TX PIC ==> PC
5 IN RPB1 U2RX PIC <== PC

USB will be available too, with at least a comunication device class (CDC) enumeration.

Sensing

PIN I/O PPS Function Note
16 IN - INT0 Left IN Interrupt
11 IN RPB4 INT4 Right IN Interrupt

Battery Charger

New PIC analisys required

LEDs

Analisys required.

Note

  1. Master only: an extra LED from CC2541 indicates the BT connection status.
  2. From the battery charger an extra LED indicates che charging status.

osom's People

Contributors

gabbla avatar

Stargazers

 avatar

Watchers

 avatar

osom's Issues

ICSP connector is mirrored

The connector on the board is placed mirrored, not really a problem, but it would be nice to fix it in a new PCB release

Power pads vias

Enlarge the power pad vias, used to solder the ICs power pads to the board, to simplify the soldering (by hand) process

Used PIC doesn't have enough flash memory

The selected PIC32MX110F016B doesn't have enough flash memory to store the entire final application. Actually this is only a guess, but since the memory usage is over 50% right now (and I only configured a couple of peripheral with very basic operation), I'm pretty sure that the guess is right. The chip will be replaced by PIC32MX170F256B.

Current memory usage
110

Memory usage on new chip
170

Sorry for the bad quality screenshot, I'm working on a crappy PC, waiting for my main to come back from RMA.

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.