6 votes

My Digispark board won't show up in Ports tab in Arduino IDE (OSX)

I don't think it is supposed to. The Digispark briefly connects in "bootloader" mode, which you spotted as "Vendor-Specific Device:". Then after 5 seconds it runs the loaded sketch. If your sketch ...
Nick Gammon's user avatar
  • 38.2k
6 votes
Accepted

Problem with programming digispark ATtiny85 board with Arduino IDE

i=i++; //increment by one The result of the above statement is not defined. That is, it is not necessarily "i + 1". See: http://en.wikipedia.org/wiki/...
Nick Gammon's user avatar
  • 38.2k
5 votes
Accepted

Why do DigiKeyboard.print and println change my string?

The problem is your keyboard layout. The USB HID protocol was originally intended to include keyboard layout information in it (country code selection in the descriptor) however no one ever used it. ...
Majenko's user avatar
  • 105k
4 votes

Can I connect an SD card shield to Digispark ATtiny85 board?

Yes you can connect it: http://elm-chan.org/fsw/ff/00index_p.html Your happiness depends on what you want to accomplish. Simple streaming, like feeding an FPGA with a bitstream is achievable. Logging ...
barbazoo's user avatar
  • 141
4 votes
Accepted

Safe to solder a slide switch to unused GPIO pins?

Yes, you will lose the USB connection, since PB3 and PB4 are used for the USB communication. Normally you wouldn't solder a component directly onto a board if it doesn't fit with all pins. Instead you ...
chrisl's user avatar
  • 16.3k
4 votes
Accepted

How to cut down size of imported DigiKeyboard library

With input from @EdgarBonet, I looked into the functions used and it turned out that the String() function, I used once in my code, takes up about 3kB of space in the compiled program. I ended up ...
emma.makes's user avatar
3 votes
Accepted

Flashing an ATtiny85 with a NodeMCU?

It can be done. Your Digispark has SPI pins, which are ISP pins. For the esp8266 there is an ESP8266AVRISP library for OTA upload to AVR. You can use the example of the library. You must wire the SPI ...
Juraj's user avatar
  • 18k
3 votes

Digispark Serial Port Communication

You may use DigiCDC to virtually create a serial device. It's slow but does the job as mentioned in this article. A serial-echo program would look something like this: #include <DigiCDC.h> void ...
waqaslam's user avatar
  • 131
3 votes
Accepted

Change Digispark clock speed, run at low voltage?

You can set the clock prescaler at run time. For example: #include <avr/power.h> void setup() { clock_prescale_set(clock_div_8); // etc... } More details in the documentation from avr-...
Edgar Bonet's user avatar
  • 43.1k
3 votes

Digispark Micro (ATTINY85) not working on Macbook Pro 2016

Digisparks are known to have problems with USB3 ports (which your USB-C adaptor probably provides). Try using a cheap USB2 hub between the DigiSpark and the adaptor. It's always a good idea to use a ...
JayEye's user avatar
  • 756
3 votes

Arduino Digispark ATtiny85 conditional logic not working

I am confident I solved the problem and think I know why it occurs. PB1 on the digispark Attiny85 has a built in LED. This LED is still active when I run my code. The LED is dim, but consuming power. ...
jmarywien's user avatar
2 votes

Digispark / DigiKeyboard change keyboard layout

You can edit the file scancode-ascii-table.h in your DigiKeyboard library. It basically states which ASCII code corresponds to which keyboard scancode. So if you try to print the ':' character but ...
Panki's user avatar
  • 121
2 votes

Change Digispark clock speed, run at low voltage?

The digispark uses the micronucleus bootloader. You can flash that directly onto an Tiny85 without needing the digispark module. So your existing Tiny85 solution could acquire the USB bootloader if ...
jose can u c's user avatar
  • 6,974
2 votes

Why isn't DigiSpark automatically recognized on other computers?

the digi spark make use of a bitbanged usb. (emulated usb). because of this a new pc wont see a HID keyboard but a digi spark. only when the driver is installed it will automaticly switch to the HID ...
Arduino sensai's user avatar
2 votes
Accepted

Can I connect an SD card shield to Digispark ATtiny85 board?

In short I am going to say NO. The flash is too small to adequately run the SD library as well as the rest of your Arduino code. The RAM is also underpowered for what is needed to properly access ...
sa_leinad's user avatar
  • 3,188
2 votes
Accepted

How is interaction with CDC device with no interface endpoints working?

Micronucleus uses control transfers to upload code (it's not a CDC device). You don't need an endpoint for control transfers - they use the implicit endpoint 0 that is always present whether you ...
Majenko's user avatar
  • 105k
2 votes

Attiny85 - Method to discard glitched ADC values?

I have no idea why they haven't used a fixed pull-up, but the pull-up is only done when the controller wants to read the sensor for only about 120us. If you want to get a good resolution in the ...
Edgar Bonet's user avatar
  • 43.1k
2 votes

I2C libraries for ATTiny85?

I want to transmit I2C data... A little vague. Transmit to what device? How fast is your data rate (100kHz, 400kHz)? Your only transmitting and not reading anything back? What is the idling voltage ...
ahogen's user avatar
  • 129
2 votes

Can I connect an SD card shield to Digispark ATtiny85 board?

#include <SPI.h> #include <SD.h> File file; int const pinCS = 2; void setup() { SD.begin(pinCS); ...
Josef's user avatar
  • 51
2 votes

Digispark ATtiny 85 erases flash after power loss

I got the same issue, on two boards. Will probably try to burn the bootloader using usbasp, maybe they burned the wrong one back in china. EDIT: As expected flashing the micronucleus bootloader ...
Lucas's user avatar
  • 21
2 votes

Continuous voltage on IO Pins while 5V is not Connected?

For this I would recommend isolating the power from the batteries with P-channel MOSFETs and only switching them on when you want to sample the voltage. This means that there is no power consumption ...
Majenko's user avatar
  • 105k
2 votes

Attiny85 Clone Cannot set P1 to input

I had a quick look into the Schematics of a digisparc board. P1 is hardwired over an LED and a resistor to GND. If you turn on the PULL UP resistor for P1 the LED should light up and the voltage at P1 ...
Peter Paul Kiefer's user avatar
2 votes
Accepted

DigiSpark attiny85 computer not detecting

Unless, during the short time it shows in device manager, you see that it is missing a driver, it would seem you don't need to do anything further with drivers. You didn't mention it saying it was ...
timemage's user avatar
  • 5,231
2 votes

Unlocking Digispark ATTiny85 after flashing it to HID

If you can't access the bootloader using USB your remaining option is ISP/ICSP (In-Circuit Serial Programming). I have that digispark board and I have never been able to program it using Arduino's IDE/...
jcfgonc's user avatar
  • 21
1 vote

Measure small capacitances with ATtiny85 (Digispark board)

The reason this doesn't work is that PB5 is pulled high (as it's used as -RESET pin on the board). The code can be rewritten to use only one ADC pin though.
fuenfundachtzig's user avatar
1 vote

Digispark ATtiny 85 - not recognised as HID device

I hope I'm not too late here, but I believe you may need to update the bootloader. Could you try the instructions here? https://www.iot-experiments.com/micronucleus-bootloader-upgrade/ I happened to ...
user3076673's user avatar
1 vote

Digispark ATtiny 85 - not recognised as HID device

After five seconds, which is when the bootloader should switch to running your code, how does it show up in the list of usb devices (lsusb in Linux, Device Manager in Windows, etc.) The original ...
JayEye's user avatar
  • 756
1 vote
Accepted

Digispark don't work when I power it by 5v and GND inputs and chip starts heating

You connected the power backwards - so all the current is being shunted straight through the ESD protection diodes (and likely other routes too) generating lots of heat and risking permanent damage to ...
Majenko's user avatar
  • 105k
1 vote

Serial communication mac to Digispark ATtiny85

SoftSerial and a real serial port on the mac will work. Or if you are careful use the DigiKeyboard and print the debug to the HID keyboard REMEMBERING to switch to a notepad equivalent window on the ...
tech-head-uk's user avatar
1 vote

Why do DigiKeyboard.print and println change my string?

You might check out my fork of DigistumpArduino library (https://github.com/rsrdesarrollo/DigistumpArduino) with full keyboard layouts support.
Raúl Sampedro's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible