Okay so I am trying to control an RGB LED with my android phone via USB. I have everything connected properly with my OTG cable for my phone. The app is this one https://play.google.com/store/apps/details?id=arduino.control.rgbleds&hl=en However it doesn't come with a sketch for the arduino. I do know that my phone is communicating with the arduino because when I use the sliders on the app the RX light blinks on the arduino. I just need a sketch to upload that will work with the above mentioned android app. Thanks.
Nevermind lol I had to translate the page. I got it!!!!
Alright so I got it all working. Now my question is how can I use an Attiny84 chip for this project? I already programmed the attiny84 chip with the sketch. I am wondering which pins to connect to the chip as far as the data wires go from the USB cable coming from my android device? Is this even possible?? Ground and voltage + are red and black but there are still white and green(data + and data -) Which pins do I connect these wires to on the Attiny84? I want to be able to show this off to people without carrying the arduino around with me. I have already programmed the attiny84 chip with the sketch and am stuck on where to connect the data wires (white and green on usb cable) to on the attiny84 chip.
The Attiny84 chip does not have USB built in. Neither does the 328 chip in an arduino uno, but there is a chip on the board that provides that function. You can use a FTDI adaptor with your attiny to provide USB to serial, and connect the serial to the chip.