41 comments posted · 111 followers · following 0

8 months ago @ https://startingelectr... - Arduino IDE Digispark ... · 0 replies · +1 points

I have had trouble programming the Digispark board on one of my computers while the others worked fine. I had to use an external USB hub to get the board programmed on the problem computer. I just used a USB powered four port USB hub that is intended for laptop computers. Plugged the hub into the computer and then the Digispark board into the hub. After that it worked with the programming instructions. Take a look at the Digispark troubleshooting page for more information:

9 months ago @ - Atmel Studio Problems ... · 0 replies · +1 points

Hi Bruce
The procedure on page 155 sets up a new project that uses the code on page 157. This project does not print anything out of the serial/USB port to TeraTerm. It controls the connected LEDs shown on page 153 and 154.

Make sure that you selected the correct tool as shown in Figure 8.15 on page 157. A test can be done to check whether the tool (Atmel-ICE) is working and can "see" the hardware it is connected to as follows: In Atmel Studio, click the Device Programming icon on the top toolbar, or select Tools --> Device Programming, or use the keyboard shortcut Ctrl+Shift+P. This opens the Device Programming dialog box. In the Device Programming dialog box, make sure that the correct Tool (Atmel-ICE), Device (ATmega328P for Arduino UNO) and Interface (ISP) are selected at the top of the dialog box. Click the Apply button. Click the Read button under Device signature. If the Atmel-ICE is working and connected correctly and the Arduino Uno is powered up, then the Device signature and Target Voltage fields are filled in with a valid signature and voltage. This shows that the Atmel-ICE is working and can "see" the target hardware.

Other than that, the only other thing I can suggest is to unplug the Atmel-ICE and reboot the computer. After that, try programming the board again. If that fails, then create the project again from scratch.

Hope that helps,

9 months ago @ - Atmel Studio Problems ... · 1 reply · +1 points

HI Bruce
If what you mean by the terminal is a program such as Tera Term connected to the Arduino USB/serial port, then you can use control codes, such as are mentioned on page 100 and 101 to manipulate the cursor and terminal screen. These are usually referred to as ANSI/VT100 control codes. What you need to do is write your own functions to use these codes. For example, you can write a function called gotoxy(int x, int y) that is passed the x and y coordinates to move the cursor to, then use the code \x1B[x;yH in the function to move the cursor to the specified x, y position. Find a clear screen cls() function examples here:

Some basic control codes are found here:
Just note that the escape character is written as an octal number in this reference, for example 33[2J whereas the book uses hexadecimal numbers for the escape character, for example \x1B[2J Other references may write the escape character as <ESC>

Bear in mind that not all serial terminals emulate a VT100 terminal, so control codes do not work with all terminal programs.

I hope that helps.

1 year ago @ https://startingelectr... - Arduino IDE Digispark ... · 0 replies · +1 points

Just an update on the Windows computer that did not recognize the driver: Using an external USB hub solved the problem. I plugged a USB powered USB hub into the computer and then the Digispark board into one of the USB ports on the hub. Programming then worked.

1 year ago @ https://startingelectr... - Arduino IDE Digispark ... · 1 reply · +1 points

Are you sure you entered into the Preferences box? This is what brings up Digistump AVR Boards in the Boards Manager. After installing from the Boards Manager the boards is available form the menu: Tools → Board → Digistump AVR Boards → Digispark (Default - 16.5MHz)

The Digistump Digix board that you mentioned is something completely different. It is a 32-bit ARM board. The Digispark board is an 8-bit AVR board.

I followed the tutorial again using a different computer with a fresh install of Windows. Digispark (Default - 16.5MHz) appears on the Tools menu as per the tutorial. The IDE prompts for the board to be plugged in. The only problem I had on this computer is that Windows would not recognize the driver. This can occur on some computers because the Digispark board simulates USB. Testing it on another computer still works.

1 year ago @ https://startingelectr... - Arduino IDE Digispark ... · 0 replies · +1 points

Thanks :)

1 year ago @ https://startingelectr... - Arduino IDE Digispark ... · 1 reply · +1 points

Whatever code was last loaded to the Digistump will start running as soon as it is powered up.

What you described with Arduino sounds like you set it up as a USB device. I don't know if the Digistump can operate as a USB device.

1 year ago @ - Atmel-ICE to Arduino U... · 0 replies · +1 points

If you have Dupont wires with a male pin on one end and a female socket on the other, then you can plug six of these into the socket at the end of the Atmel-ICE cable. You have then made your own "squid cable". Just connect the female side of the wires to the ICSP header of the Arduino board. This may help to solve the problem.

1 year ago @ - Atmel-ICE to Arduino U... · 0 replies · +1 points

I haven't had that problem. Are you using a genuine Arduino Uno or a clone? Just wondering if it is the Atmel-ICE connector or the pin header on the board that is the problem.

1 year ago @ - Atmel Studio Problems ... · 0 replies · +1 points

Hi Bruce
Glad to hear that you found the problem.
There are two things that you can do regarding selecting the Atmel-ICE in Atmel Studio / Microchip Studio.
1) Before clicking "Start Without Debugging", first click the hammer icon on the second top toolbar where it says "none on" or "no tool". A dialog box opens that lets you select the Atmel-ICE. After saving, continue with "Start Without Debugging".
2) Set up a project the way you like it with the Atmel-ICE selected as the tool to use. Click File --> Export Template using the top menu in Atmel Studio / Microchip Studio. This opens the Export Template Wizard dialog box. Click Next on the first page of the dialog box. Fill in the template name and description that you want in the second Export Template Wizard dialog box page. Click Finish to create the template. The new template should now be available in the dialog box used to create a new project. You might have to scroll down to find it. When you start a new project with the new template, the Atmel-ICE that you selected before making the template should already be selected for the project.