wspublishing

wspublishing

45p

44 comments posted · 144 followers · following 0

10 months ago @ wspublishing.net - Updates and Resources ... · 1 reply · +1 points

The book relies on a programmer being used and does not support direct USB programming.

11 months ago @ https://startingelectr... - Arduino Functions | Ho... · 0 replies · +2 points

I will need to see your code to be able to help you.

1 year ago @ https://startingelectr... - How to learn electroni... · 0 replies · +4 points

This will get you started. It takes a few years to really master electronics.

1 year 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: https://digistump.com/wiki/digispark/tutorials/co...

1 year ago @ wspublishing.net - 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,
Warwick

1 year ago @ wspublishing.net - 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: https://rosettacode.org/wiki/Terminal_control/Cle...

Some basic control codes are found here: https://student.cs.uwaterloo.ca/~cs452/terminal.h...
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.
Warwick

2 years 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.

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

Are you sure you entered http://digistump.com/package_digistump_index.json 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.

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

Thanks :)

2 years 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.