[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Maintenance is complete! We got more disk space.
Become a Patron!

/diy/ - Do-It-Yourself


View post   

[ Toggle deleted replies ]
>> No.1607169 [View]
File: 35 KB, 406x500, 1542223143083.jpg [View same] [iqdb] [saucenao] [google] [report]

with gcc on the bare metal, a blinky is possible in 90 bytes
>30 bytes vector table
>2 bytes for the bad interrupt halt
>4 bytes for _exit to clear interrupt enables and halt
>12 bytes to set up stack pointer and get to main()
>42 bytes for main() itself

I don't like those horizontal mount 1/4W resistors with only 0.300" between leads. you have to make the bend very close to the body, which is a lot to ask without a bending die. of course if they're only 1/8W carry on
generally, start in the middle of the board, use a 1.2mm screwdriver tip, and leave the offboard connections for last. good night and good luck

>How important
very. look at R9 and R10 for ex. there are many different configurations of those little yellow epoxy-dipped SIPs, some with just five separate resistors inside, some with 9 resistors tied on one side to a common terminal, some with 2 banks of 8 resistors each bank tied on one side to a common terminal forming 8 voltage dividers, and so on. on the other hand, for most circuits, resistor-to-resistor matching inside the network doesn't really matter that much
anyway for hobby purposes, it's conventional to choose 1/4W ±5% resistors, ±20% electrolytic capacitors with any voltage greater than the circuit's power supply, 50V (or greater) ±10% or ±5% ceramic capacitors unless otherwise specified. ICs are all different and subtle, and substitution is fraught with loads of traps for young players
>buying parts you don't need
this is how you build up a stock of components for your hobby, only degenerate when taken to an extreme. seriously don't get suckered into paying $0.10 for one resistor when you can get ten for $0.12

that's the whole point of arduino: to code
you might check out the arduino general

View posts [+24] [+48] [+96]