I am new to designing something to be powered by USB. Ideally It can either be plugged in to an adapter to a UK wall plug, or a powered USB port on another device. I have the circuit design in place using Kicad but I've never powered a device using USB.
Is is simply just connecting V+ to the bits that need power, ground to the bits that need ground and a 1uF capacitor connector between the two (if so which way should they be connected)? Or is this wildly wrong? I don't need any data transfer to D+ and D- have been left open. Do these need to be connected to ground with pull down resistors or something? Id like to get this right so I can do it when designing other products.
Im powering an attiny and some 5mm LEDs