Electronics

From Hegemon Wiki
Revision as of 20:00, 22 August 2024 by H3g3m0n (talk | contribs) (→‎Treadmill Repair)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Treadmill Repair[edit | edit source]

Misc[edit | edit source]

Vellum Paper instead of transparencies.

Quick Links[edit | edit source]

EBay Electronic Components

Ebay Awaiting Feedback

Ebay Purchase History

Converters/Calculators[edit | edit source]

Stores[edit | edit source]

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

Reddit Wiki Parts - Lists some...

Misc[edit | edit source]

  • Bit banging an Atmel AVR via SPI
  • "Delamination temperature is around 300 - 320°C for a regular FR-4 Tg135 material, so you shouldn't go over that. If you do, then reduce the time of soldering as much as you can. Otherwise you risk lifting the pads or breaking the vias. There are better materials with higher temps, like FR-4 Tg180, with Td over 350°C, but they are more expensive and not much common."

RISC-V[edit | edit source]

General Infos[edit | edit source]

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[edit | edit source]

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

KiCad[edit | edit source]

Projects[edit | edit source]

Sunrise Alarm Clock[edit | edit source]

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.
  • Low power mode for ESP12F?
  • 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?
  • Red lights for nighttime sleepy?

DSO138[edit | edit source]

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[edit | edit source]

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[edit | edit source]

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[edit | edit source]

Manufacturer: e0 Device: 4016

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

"BergMicro BG25Q32 32Mbits"

Chip ID[edit | edit source]

Chip ID: 0x002c260b

ESP as programmer[edit | edit source]

Look into esp-link.

Multi-meter RGB mod[edit | edit source]

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[edit | edit source]

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...

Repair[edit | edit source]

Dell 2504FPW[edit | edit source]

Capacitors[edit | edit source]

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[edit | edit source]

Protoboarding[edit | edit source]

Misc[edit | edit source]

Oscilloscopes/ADC/DAC/stuff[edit | edit source]

FNIRSI 1014D vs OWON SDS1104 vs Hantek DSO2D10 ⭐ Entry Level Oscilloscope Showdown!

Name Mhz Cost Type Description
Hantek 6022BE 20MHz USD$58.20 (85.7364) USB Not sure if it's isolated, but worse than the OWEN...
OWEN Vds1022 25Mhz $89 USB No isolation = blown up computer
OWEN Vds1022I 25MHz $135 USB 2 ch. Linux support is vague...
PicoScope 2204A 10Mhz $252.30 (maybe $147+shipping) USB Why would anyone buy this over the OWEN?
BitScope 10 100Mhz $245 USD. (AUD$361.179) USB 2ch + logic analyzer
Hantek DSO5102P 100Mhz AUD$366.649 ($346.00 used, delivered) Real Decent but more than I was looking for...
Hantek DSO2C10 100Mhz AU$350, $278 from Aliexpress Real Can be 'hacked' to 150Mhz version?
Rigol DS1054Z 50Mhz (hackable to ~135Mhz) USD$339 + shipping Real Probably better than the hantek with the hack...
Rigol DS1202Z-E 200 MHz (maybe hackable too?) USD$349.00 + shipping Real Why would anyone get a 1054 over this?... No shupping to AUS...
Rigol DS1102E 100MHz (maybe hackable to higher?) USD$363.62 + USD$36.93 Real $259.00 without probes, cables, manuals (might be best to buy better probes anyway, but not sure of prices and what other cables would be)...
OWON SDS1102 100MHz USD$249.00 +shipping Real
Siglent Technologies SDS1102CML+ 100Mhz USD$299+shipping Real ???
Siglent SDS-1152CML 150MHz $398.00 Only one, old model?



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

GPIO Expanders[edit | edit source]

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[edit | edit source]

Example

Exaple+Load

Another Example

More

moar2

touch protection

touchp2

SCR based test

Pull down to voltage 5 volts[edit | edit source]

Simple pull down

Resister Ladder[edit | edit source]

[4]

Basic Resistor Ladder

reversed

Ladder +12v input

Unchained Ladder with 12v

Unchained Ladder e12 + 12v

Complete[edit | edit source]

complete

Complete2

Complete 3

Complete 4

c5

c6

Stripboard[edit | edit source]

s1

s2

s3

S4

s5

s6 - flipped board

s7

s8

Negative voltage[edit | edit source]

[5]

FPGA[edit | edit source]

ICE40 UL1k

ICs[edit | edit source]

Z-80