0

Our project involves using an arduino compatible microcontroller to control a mouse on a computer with an accelerometer and flex sensor. We had narrowed down to the ATTiny85 due to its small size.

We found a particular tutorial on the Adafruit tutorial website, using the Adafruit Pro Trinket using the same ATTiny85.

Is there a reason to believe that this won't work?

Also, does anyone have suggestions as to which board to use apart from Micro as it isn't too available here?

2

Due to the lack of USB-Support of the ATtiny85 you will be forced to use something like V-USB as the tutorial does. This might have implications when you are targeting a commercial product.

Personally I'd suggest using the ATmega32u4. It has USB build right in.

But basically I don't see any reasons why it should not work.

  • If we use a breakout board with a USB like – Souvik Saha Nov 22 '16 at 16:58
  • If we use a breakout board with a USB like this one we won't need V-USB right? amazon.in/dp/B00Z09R3YC/ref=cm_sw_r_cp_apa_i_LKhnyb5J9FFWE – Souvik Saha Nov 22 '16 at 17:01
  • The description tells so. But it does not state how the USB is addressed. I suspect there is a boot loader that is used for programming (and therefore reduces the available space) basing on V-USB or similar. Perhaps it provides a wrapper so you can address USB easily. – Kwasmich Nov 22 '16 at 17:30
  • There is a USB port right? – Souvik Saha Nov 23 '16 at 3:21
0

@Kwasmich raises a good point about the 32u4. Here is a little more information about it.

  • Works at 5V and 3.3V
  • Compatible with the Arduino IDE
  • Built-in USB
  • Very close to the ATmega328

Here are a couple of cheap breakouts for it

  • You forgot about the Arduino Leonardo – Kwasmich Nov 22 '16 at 13:27
  • @Kwasmich, too big, never seen a mouse that big. I suggested the smallest models. – Dat Ha Nov 22 '16 at 13:44
  • @Kwasmich we were aiming to be as portable as possible. – Souvik Saha Nov 22 '16 at 16:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.