Hi,
The project is that the Attiny85 receives from the JDY-08 (that is connected via bluetooth with my smartphone) some data, and then the attiny85 act like a keyboard and mouse that write on the pc something, like for example the data. The problem is not the coding.
So I have done this circuit that is powered from the USB 5v of a PC:
Do you thing is all right? the circuit I think is ok.
Just to be sure before print it. The only question is if this is gonna work like kayboard and mouse.
You forgot the voltage divider on the RX pin of the BT module.
Now you're feeding 5volt-logic into a 3.3volt pin.
That might be ok for a while, but...
Leo..
So if I convert everything to 3.3v with the AMS1117 and connect the Attiny85 and JDY-08 to the Vout of the AMS1117, it should not be a problem for the feeding 5volt logic to 3.3v pin.
I do not understand, do you mean the the Rx and Tx are reversed? Or that I have to connect the Tx to the A1?
No.
If you do, then you have problems with feeding the 5volt USB data signals into the Attiny.
Just leave the Attiny powered from 5volt, and add a 1k:2k2 voltage divider to the RX pin of the BT module. Lots of examples for that on Google images for HC-05 modules.
Diode D1 is pointing towards the USB connector, which is wrong. Turn it around.
Leo..
Hi again everybody. It's been a month, and finally i could get the pcb printed, and now finished to solder.
The problem is that when I plug it in the PC, my PC say that have been plugged a usb that could not be recognized, and i can hear the sound of usb plugged in, but I don't hear the sound of unplugging usb (good?).
So I can't use the Digispark Uploader to upload.
What I have to do? the Attiny85 is unsoldered from a working Digispark Attiny85 board.
Screenshot of the error (found on internet becuase I have windows in italian)