Electronics: Difference between revisions

From Hegemon Wiki
Jump to navigation Jump to search
Line 56: Line 56:
* Add light sensor to make sure the screen is off at night (if it is a lit screen).
* Add light sensor to make sure the screen is off at night (if it is a lit screen).
* IR Motion sensor? Wave hand to turn on light?
* IR Motion sensor? Wave hand to turn on light?
* Blue lights for morning waking.
* Blue lights for morning waking?


==DSO138==
==DSO138==

Revision as of 00:51, 27 February 2017

Quick Links

EBay Electronic Components

Ebay Awaiting Feedback

Ebay Purchase History

Converters/Calculators

Stores

Chonelectronics - Based in Thailand. Slow shipping but seem cheap. Recommended on Instructables (but from old 2009 post)

Reddit Wiki Parts - Lists some...

General Infos

Wood's Metal (toxic but cheap) and Field's Metal (not toxic, but more expensive) can be used as an alternative to ChipQuik. Also look into Rose's metal... Wikipedia lists Cerrosafe as differnt to Wood's metal but youtuber called it the same thing.

Mosfet

  • P CHANNEL MOSFET. (Load connected between Drain and Ground)
  • N CHANNEL MOSFET.(Load connected between Drain and +V)

KiCad

Projects

Sunrise Alarm Clock

Status:

  • Was waiting on DC power jacks, copperplate boards and PCB drills that have arrived. Everything should be ready if etching works ok.
  • Need to figure out which power supply to use (Bladeless Fan one?) and attach DC jack.
  • Basic proof of concept ESP12-F program that gets the time via wifi seems to be ok. Arduino IDE sucks balls, need something that is unit-testable.
  • ESP12F's keep dying and wifi OTA flashing is crap.
  • Need to etch a custom PCB with an ESP12F socket and UART ports.
  • Need to design the PCB in KiCad and get footprints for various things. MiniJST connectors.
  • Need to future proof the design for expansion of other ideas.
  • Soldered LEDs to the base but probably want to redo them to allow for individual addressing. This will let one light turn on at a time, needed because the lights have a minimum forward voltage, meaning a minimum brightness.

Ideas:

  • Add screen to give time.
  • Add light sensor to make sure the screen is off at night (if it is a lit screen).
  • IR Motion sensor? Wave hand to turn on light?
  • Blue lights for morning waking?

DSO138

Status: Managed to compile the opensource version and upload it to the device. The opensource uses the old R11 resistor value. Need to port the new resistor value to the opensource version. Currently radare2 sucks as reverse engineering the ARM thumb instructions. Heaps of the oscilloscope code is behind a binary blob.

stm32flash  -v -b 115200 /dev/ttyUSB0 -w 113-13801-061.hex
r2 ../src/firmware-src/libdso138.a -b16 -aarm -AA
  • "Supports two types of TFT controllers (ILI9341 and ILI9325/9328)."
  • Mine is a ILI9341...
  • CPU is: STM32F103C8. Does not support DFU (usb bootloader).

GP2Y1010AU0F Dust Sensor

STATUS: Build a basic prototype with Arduino that returns numbers. Need a standalone long term version for datalogging.

GP2Y1010AU0F - DataSheet Alt DataSheet

Example Arduino Usage + github - Apparently 3.3v isn't enough for the full range, but might be ok for real world usage... Having said that, powering it from 5v USB would be easiest. Is it possible to hijack a USB 3.3v data line for power?

Instructables - Mentions a 150Ω resistor and a 220nF capacitor.

arduino.org tutorial - Has a capacitor and resistor.

howmuchsnow.com - Includes some air quality stuff.

ESP-12F Programmer

STATUS: Have build the physical board to socket ESP12F's. The Red FTDI programmer is partially dead but can be used. Auto flashing without a manual reset wasn't working. ESP12F's keep dying and reliable flashing is fucked. Probably due to shitty flash memory.

Live debugging for ESP8266

Bootloading/Usage pinouts...

Blinky Makefile Examples Some other examples

[https://hallard.me/esp8266-autoreset/ Alternative auto reset, with capacitors...

JTAG Info


  • LM1117t Pins - Gnd Out In
  • S9013 - EBC

FT232 with Transistor Pin out parent CJS - Does this need pull ups/downs?

Pins:

  • EN - Always must be high.
  • GPIO15 - Always must be low (Unless booting from SD card...).
  • RST - Normally high? It's getting pulled down by UART... Maybe it's a Schmidt trigger... Seems to bootloop forever when pulled low, but only after the FTDI activates it. FTDI Pulls it low then high.
  • GPIO0 - Boot Pin. High when normal. Low for bootloader.

On pulling resistors "A 2K resistor gives better noise immunity."

"esptool uses the RTS and DTR modem status lines to automatically enter the bootloader. Connect RTS to CH_PD (which is used as active-low reset) and DTR to GPIO0."

esptool guide

Flash Memory

Manufacturer: e0 Device: 4016

e0 is unknown manufacturer 4016 indicates 4MiB (32Mbit).

"BergMicro BG25Q32 32Mbits"

Chip ID

Chip ID: 0x002c260b

ESP as programmer

Look into esp-link.

Multi-meter RGB mod

STATUS: Mounted RGB LEDs onto the multimeter frame. But no control circuitry. Was going to use an Digispark but a ESP12f might be better since I can program it wireless. Except they keep dying on me. The Current RGB LEDs require 6 lines of PWM if I want individual colours. Have some WS2812B's that might work instead.

DIY Multi-meter

STATUS: Planning

  • [2]
  • uGFX + ChibiOS
  • INA219 - INA219 26-V, Bidirectional, Zero-Drift, High-Side, I2C Out Current/Power Monitor - Breakout boards are like $4 on ebay.
  • INA226 - 36-V, Bi-Directional, Ultra-High Accuracy, Low-/High-Side, I2C Out Current/Power Monitor w/ Alert. - Boards are like $8 on ebay.
  • INA333 -

INA333 Micro-Power (50μA), Zerø-Drift, Rail-to-Rail Out Instrumentation Amplifier. Listed on ebay for $6, but other listing are $216 o_O, $35 and $13. Seems there is a huge range...

Capacitors

This info on LM1117 capacitors....

  • The minimum output capacitance required by the LM1117 is 10µF...
  • The ESR of the output capacitor should range between 0.3Ω - 22Ω.
  • The ESR of the output capacitor should be less than 0.5Ω.
  • Tantalums were specified because Electrolytic can have their ESR increase up to 30x on very low temps.


Info on the AMS1117 caps...

I have:

Maybe get some non-SMD MLCCs? Tantalums?

PCB Etching

Protoboarding

Misc

Oscilloscopes/ADC/DAC/stuff

ISL21009BFB812Z V-Ref Prec,1.25V,7mA REF5050AID 5.0V Voltage Reference REF102 V-Ref Precision 10V 10mA

GPIO Expanders

PCF8574 - 8 bit I²C. 100khz. EBAY 10 DIP style, for $5. EBay has SMD 5pcs for $5 RS Online has SMD for $0.886ech ($4.43 for 5)

PCF8575 - 16bit. RS SMD for $2.421. 400khz.

FXL6408UMX - Slightly cheaper than the PCF8574 and 400khz freq. $0.819 each on RS (min order, 10 for $8.19).

MCP23S17/MCP23017 - i/o expanders (shift registers?). Once is I²C the other is SPI. Foosoo has 5 DIP style S for $6.27 and Mcp23017, 5 for $5.51

Simple Latch MOSFET

Example

Exaple+Load

Another Example

More

moar2

touch protection

touchp2

SCR based test

Pull down to voltage 5 volts

Simple pull down

Resister Ladder

[4]

Basic Resistor Ladder

reversed

Ladder +12v input

Unchained Ladder with 12v

Unchained Ladder e12 + 12v

Complete

complete

Complete2

Complete 3

Complete 4

c5

c6

Stripboard

s1

s2

s3

S4

s5

s6 - flipped board

s7

s8

Negative voltage

[5]

FPGA

ICE40 UL1k

ICs

Z-80