Coder Social home page Coder Social logo

particle's Introduction

Particle

Sketches for particle photon

Electro

Overview

This firmware uses the particle photon to create a wi-fi voltmeter.

Usage

2 cloud variables are exposed: voltage and maxvoltage.

# Calculate and display maximum input voltage
particle variable get <photon-name> maxvoltage
# Read current voltage difference between positive and ground probes
particle variable get <photon-name> voltage

Hardware

Parts used:
  • Particle Photon (x1)
  • 82k ohm 1% tolerance resistor (x1)
  • 10k ohm 1% tolerance resistor (x1)
  • (Optional) Breadboard (x1)
  • (Optional) Jumper wires (x4)
Wiring Diagram Example:

Fritzing

Firmware

The photon analog input pins can take an input voltage of between 0 and 3.3 volts, and are 12bits giving a 4096 resolution. In order to reduce the input voltage to prevent damaging the photon, a voltage divider circuit is used. Depending on the resistor values used, the maximum safe input voltage in calculated.

  • vPin variable can be changed to correspond to using photon inputs A0-A5.
  • vPow variable can be adjusted based on individual photon reference voltage.
  • r1 can be adjusted if resistor 1 (82k ohm) is changed.
  • r2 can be adjusted if resistor 2 (10k ohm) is changed.

particle's People

Contributors

jasonpilz avatar

Watchers

 avatar

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.