Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Let's hack cheap hardware 2016 edition

2,095 views

Published on

I hope to see more hacks of STM8 based devices since we have sdcc compiler with support for stm8, cheap SWIM programmer in form of ST-Link v2 (Chinese clones, which are also useful as ARM SWD programmers) and STM8 has comparable features to 8-bit AVR micro-controllers but cheaper.

Published in: Devices & Hardware
  • Be the first to comment

  • Be the first to like this

Let's hack cheap hardware 2016 edition

  1. 1. Let'shackcheaphardware 2016edition Dobrica Pavlinušić http://blog.rot13.org HULK, HrOpen 2016-05-12 #dorscluc 2016-05-14 Osijek Mini Maker Fare
  2. 2. Whyarewehere? Youboughtsomethingwhichisnot quiteusefulasitshouldbe… ...oritcouldbeimproved! let’shackit!
  3. 3. Everythingisnotalwayshackable-youmighthaveablobonboard
  4. 4. Everythingshould behackable! Wewilltalkmostly aboutpowertoday.
  5. 5. Let’sseesomeinterestingproducts withfree/openfirmwarereplacement!
  6. 6. IMAXB6battery charger Why would you want to hack this device? Serial port and temperature sensor share same pins! We want temperature sensor and serial logging! Universal battery charger Li-ion, LiPo, LiPo-4.30V, LiPo-4.35V, LiFe, NiCd and NiMH, NiZn, Pb
  7. 7. IMAXB6batterycharger https://github.com/stawel/cheali-charge Two supported variants: ATmega32 and Nuvoton NuMicro M0517LBN There is also unsupported 8051-based variant!! YMMV
  8. 8. SolderreallytinywiredirectlytoCPUtobringoutserialportonalternativepin!
  9. 9. Youmighthaveafrewoldbatteriesfromlaptopswhichjustwanttobereused...
  10. 10. https://github.com/dpavlin/cheali-logview-gnuplot WasitWorthit?
  11. 11. Therearetwounusedpinsoncpuwhichcanbeusedwithalternativefirmware! Andvariouspossibilitiesforthermalsensorifyousolderfewmorewires...
  12. 12. To calibrate IMAX B6 you will need multimeter which is more precise than ADC in device If you also want serial logging UNI- T UT61E might be good choice since it’s supported by sigrok: http://sigrok.org/wiki/UNI-T_UT61E You will also need ST-Link v2 to program ARM core using SWD or USBasp (or Arduino with ASP sketch) to program AVR CALIBRATIONREQUIRED!
  13. 13. But,Idon’tcare aboutbattery chargers!
  14. 14. Howabout adjustablepower supply? B3603 $10 step down buck Input: 6-40V (+1.5V more then output) Output: 0-36V Output current: 0-3A (2A continuous!) Constant current or constant voltage
  15. 15. Quiteniceandstablepowersupply Notaopenhardwareproject,butpeopleputsome effortintoitandreverseengineeredschematics oftopandbottomboards
  16. 16. MingHeB3603 https://github.com/baruch/b3603 https://github.com/swegener/b3603 Convert this step-down into USB controlled power supply (display and keys no longer work so have that in mind) Needs ST-Link v2 to flash it using SWIM and CP2102 USB serial Uses sdcc to compile for 8051 https://hackaday.io/project/4362-power-supply-b3603-alternative-firmware
  17. 17. Calibrationwillneedmultimeterwithserialsupport! Youwillloosekeysanddisplaysupport butgetserial...
  18. 18. Butiwantreal powersupply...
  19. 19. CPS-3205 0-32V 0-5A Adjustable power suppy Nice $60 power supply Not much to hack on it, expect output terminals
  20. 20. Whowouldputoutputconnectorsonlyonbackside?
  21. 21. CALIBRATIONisdescribedin https://youtu.be/5qB0GPkt2KM
  22. 22. Nohardwarehackinghere! Itrunsfrommains(220V)voltage whichmightbelethalifyoudon’t knowwhatyouaredoing(likeme:-)
  23. 23. Let’stakealookinside….Niceconstruction,cheapcaps
  24. 24. Itdoeshavestm8mcuandswimheadersonboard….
  25. 25. IhaveUSBpower supplywhichshould work(withrpi2;-) butdoesnot
  26. 26. ZHIYUZPB30A1 60W dummy load Nice $22 dummy load Constant current 30V 0.20-9.99A Setup voltage alarm Fun1 - alert when voltage drops (for power supply) Fun2 - stop discharge on voltage drop (for batteries)
  27. 27. Solderpinsonboard andgetmonitoring! TX RX GND pi@rpi2 ~ $ microcom -s 115200 -p /dev/ttyUSB4 | od -An -t x1 -w3 04 35 01 * 04 36 01 04 35 01 * 04 36 01
  28. 28. TESTPOWERSUPPLY-buthaveinmindthatwiresalsohavevoltagedrop(0.5Vinthiscase)
  29. 29. VoltBlogreversedschematics--waitingforopenfirmware?;-)AlsoSTM8
  30. 30. Questions? @dpavlin Find something and improve it yourself! http://bit.ly/dc2016-cheap
  31. 31. Improveexisting tools
  32. 32. DSO138DIYKIT-goodbeginneroscilloscope http://www.jyetech.com/Products/LcdScope/e138.php
  33. 33. Dso138-KIToscilloscope Withquiteabitofanalognoise…it’sakit anyway,somodificationsareexpected:-) http://www.jyetech.com/forum/viewtopic.php?f=18&t=542 Beforeandaftermodificationcomparison
  34. 34. Simpleheatshrink hacks
  35. 35. Idon’twanttocrushmyboardinthosemetaljaws!
  36. 36. Ordamageitinmyhelpinghands!
  37. 37. Whatisbestpositionforhelpinghands?
  38. 38. Butwhattodowithleftoverparts?
  39. 39. Attachitsomewhereelsewhereitcanbeuseful
  40. 40. Modifyinsufficient lightonmagnifier
  41. 41. ReplacetwosmallLEDswithcarheadlightsring! Simplehackwhichimprovesusability ofthisflexiblemagnifierbyorderof magnitude! (needs12Vforledring)
  42. 42. Ineedraspberrypi2 40pinconnector forbreadboard!
  43. 43. Doublerow2.54”pinheader90degrees Singlerow2.54”pinheader Peaceofprotoboard
  44. 44. 1. Turnlongerrowof90degreepinsstraight(andaddplasticspacer) 2. Addonemoresinglerowheaderseparatedbytworows(tocrossbreadboardgap)
  45. 45. Shorterpinsarejusttherightsizetocrossbreadboardgap
  46. 46. interestingtools worth lookingat
  47. 47. Youyue858Dhotairgun https://github.com/madworm/Youyue-858D-plus http://www.eevblog.com/forum/reviews/youyue-858d-some-reverse-engineering-custom-firmware/
  48. 48. Welcometomydungeon!

×