Question about project 4

The Experimenters Kit includes an "Eleven" Arduino-compatible board, plus a range of parts and a guide to make it easy to get started with Arduino projects. [Product Page]
Post Reply
whirlybomber
Posts: 2
Joined: Thu Feb 20, 2014 6:05 am

Question about project 4

Post by whirlybomber » Thu Feb 20, 2014 6:18 am

Hello,

Just got a FreeTronics experimenter kit the other day, been playing with it for a lttle bit and I was up to example 4 in the handbook.

So I built the circut on the breadboard and copied the code from the freetronics webpage but something went Boink! during uploading the sketch.

So now the on-board TX led is flashing constantly, and when I try and upload and sketch I get something like the following in the panel at the bottom of the IDE:
Arduino error 2014 02 20.png
screen capture of IDE with error message
This occurs even after I disconnect the Eleven from USB and close the IDE then count to ten, reopen and reconnect.

How have I Borked the board so quickly, and is it possible to un-Bork it?

EDIT:

After reading viewtopic.php?f=3&t=5796 I edit to add I am on Ubuntu 12.04LTS and I am using the IDE v 1.0.5 already.

cef
Freetronics Staff
Freetronics Staff
Posts: 106
Joined: Wed Nov 09, 2011 12:53 am

Re: Question about project 4

Post by cef » Thu Feb 20, 2014 9:33 pm

Looks like the board isn't at /dev/ttyACM0 anymore.

From a command prompt, look at the output of the 'dmesg' command. It will list all the devices found (in order) and in there you may see something referring to /dev/ttyACM0 or some other number (eg: ttyACM1). Whatever the last one is, change the setting in the IDE to match.

Note: The usual reason for this is that the OS hasn't removed the old device before it's being presented with a new one (by the USB subsystem). Sometimes you can get away with just unplugging it and then plugging it back in again, but sometimes it wants to hold onto your device forever (usually depends on exactly what was going on when it was unplugged).

If dmesg says the device should be /dev/ttyACM0, then you may find that something else is using it. Specifically, networkmanager on Ubuntu (and variants) tends to think these devices are modems. You may need to tell network manager to leave the device alone. I remember there being some details on this for the LeoSticks, but I didn't think it affected the Eleven.

PS: Another useful tool is 'lsusb', which will show you what devices are connected (includes the "root hubs" that are on the motherboard, etc). More detailed info can be provided using 'lsusb -v', but hopefully you won't need to look that deep.

whirlybomber
Posts: 2
Joined: Thu Feb 20, 2014 6:05 am

Re: Question about project 4

Post by whirlybomber » Fri Feb 21, 2014 5:07 am

So I tried lsusb without the Eleven plugged in then with it plugged in:
Eleven showing up in lsusb.png
Then I looked at it in lsusb -v. I dunno what any of this means.
Eleven showing up as last entry in lsusb -v.png
So it looks like Ubuntu is seeing the Eleven when plugged in and then releasing it when unplugged.

Next I opened the Arduino IDE and looked to see if it was in Tools -> Serial Port, and it is there as /dev/ttyACM0.

Then I tried uninstalling the IDE and reinstalling it. But as soon as you try to write to it it goes grey, and you get a big pile of error messages.
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */

void setup() {
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH); // set the LED on
  delay(1000); // wait for a second
  digitalWrite(13, LOW); // set the LED off
  delay(1000); // wait for a second
}
This is the bit of the error message with the red in it. I had to crop off the RHS of the white text to get the file size down. For some unkown reaso although you can highlight the this text in the IDE you cannot copy or past it as text, hence the screenshot.
Screenshot from 2014-02-21part1.png
Any further ideas?

Billy the Beagle
Posts: 1
Joined: Fri Jan 09, 2015 5:31 am

Re: Question about project 4

Post by Billy the Beagle » Sat Jan 10, 2015 1:15 pm

I experienced this problem also. I am running a Ubuntu derivative (LXLE) on my netbook. This problem has been discussed on the ask Ubuntu forums

here
http://askubuntu.com/questions/185805/ ... ontroller
and here
http://askubuntu.com/questions/58119/c ... 122#58122
I tried the suggested method of adding myself to the dialout group, but that did not fix the problem.

What did work was one of the other suggestions on the first link - closing down all instances of the arduino IDE, then editing the arduino preferences.txt file (~/arduino/preferences.txt), looking for the Serial.debug_rate, and changing it to 9600. I think 9600 baud is the default value for the serial monitor.

This will allow the IDE to connect with the serial port, and the serial monitor will work fine.

If you run the sketch as shown in the guide, the problem will re-occur though.

I closed the IDE down and edited the preferences.txt to set the Serial.debug_rate to 9600. Then I loaded the sketch and changed this line

Serial.begin(38400);

to

Serial.begin(9600);

The sketch compiled and uploaded fine with no serial port issues, and worked well. I opened the serial monitor and the messages showing the light level values came through as expected - and reasonably quickly too. Changing the baud rate from 38400 back to 9600 did not seem to impact much for showing human readable text.


Earlier I had tried shutting the computer down and plugging the arduino in to another usb port, but this just caused the same problem on the other usb port.

For some reason setting the serial port rate to 38400 causes this problem - not sure if this is limited to Ubuntu, or whether other (non-buntu) linux and windows have similar problems.

clibin009
Posts: 329
Joined: Mon Oct 23, 2017 2:57 am

Re: Question about project 4

Post by clibin009 » Wed Jan 03, 2018 5:34 am

clb0103
michael kors outlet clearance
cheap jordan shoes
ugg boots outlet
oakley sunglasses outlet
coach outlet canada
mulberry
coach outlet online
coach outlet online
canada goose coats
ralph lauren outlet online
cheap ugg boots
adidas nmd r1
polo ralph lauren outlet
canada goose outlet
michael kors outlet online
michael kors outlet online
polo ralph lauren outlet online
cheap ugg boots
the north face jackets
canada goose jackets
fitflops sale
ray ban sunglasses discount
burberry handbags
michael kors outlet clearance
canada goose jackets
pandora jewelry outlet
uggs
coach factory outlet
ray ban glasses
cheap jordans
ugg boots sale
pandora jewelry
coach factory outlet online
moncler
ugg boots
michael kors outlet online
ugg outlet online
coach factorty outlet online
burberry handbags
nmd adidas
yeezy boost 350
michael kors outlet online
michael kors outlet clearance
polo ralph lauren outlet
uggs clearance
timberland outlet
christian louboutin shoes
pandora charms
polo ralph lauren outlet
ralph lauren outlet online
yeezy boost 350
coach purses
canada goose jackets
cheap nfl jerseys wholesale
nike sneakers
ugg outlet online
the north face outlet
moncler coats
north face sale
michael kors outlet online
ralph lauren outlet online
cheap ugg boots
ugg boots
canada goose coats
hermes outlet
canada goose sale
pandora uk
polo ralph lauren outlet online
north face jackets
pandora jewelry
toms shoes
christian louboutin shoes
cheap air jordans
louis vuitton factory outlet
michael kors outlet store
louboutin outlet
mulberry outlet uk
polo ralph lauren outlet online
michael kors outlet store
nike shoes
adidas outlet
uggs clearance
ugg outlet store
ralph lauren outlet online
canada goose outlet online
ugg outlet
nike outlet store
polo ralph lauren outlet online
hermes bags
coach factory outlet
canada goose jackets uk
cheap oakley sunglasses
louis vuitton outlet online
coach outlet online
coach outlet store online
longchamp sale
ugg boots
moncler sale
michael kors
adidas yeezy boost
red bottom heels
coach factory outlet online
uggs outlet
pandora charms outlet
nike outlet store online
north face jackets
pandora outlet
birkenstock outlet
fitflops sale clearance
nfl jerseys
cheap jordans free shipping
canada goose sale
adidas nmd runner
canada goose
mulberry handbags
ugg canada
ralph lauren outlet online
cheap jordan shoes
coach outlet online
canada goose jackets
canada goose jackets
ralph lauren sale
jordans
canada goose jackets
polo ralph lauren outlet online
cheap ugg boots
moncler outlet online
canada goose jackets
canada goose jackets
ugg outlet store
yeezy shoes
ugg canada
coach outlet online
pandora outlet
moncler outlet online
kate spade handbags
adidas shoes
canada goose sale
canada goose coats
pandora charms sale clearance
tory burch outlet online
hermes bag
gucci outlet online
louboutin outlet
canada goose jackets
cheap air jordans
kate spade handbags
coach factorty outlet online
cheap air jordans
bottes ugg
canada goose jackets
coach outlet online
michael kors outlet online
burberry handbags
pandora sale clearance
the north face outlet
michael kors outlet online
canada goose outlet
louis vuitton factory outlet
ugg outlet
ugg boots
michael kors outlet store
fitflop sandals
ferragamo outlet
oakley sunglasses for women
coach outlet online
mulberry uk
timberland outlet store
canada goose jackets
ralph lauren uk
valentino
caterpillar boots
ralph lauren
mlb jerseys
coach outlet
ugg outlet online
ugg boots
canada goose jackets
ugg boots
discount oakley sunglasses
pandora jewelry
hermens
coach factory outlet online
adidas yeezy boost
coach factory outlet online
philipp plein
tory burch outlet online
gucci outlet
canada goose outlet store
michael kors
cheap nike shoes
coach outlet store
coach outlet store
adidas nmd runner
coach outlet online
north face outlet
polo ralph lauren outlet
cheap jordan shoes
louis vuitton handbags
canada goose jackets
pandora jewelry store
ugg boots
nike outlet online
moncler uk
ferragamo shoes
adidas
ugg boots
ray ban sunglasses discount
cheap nfl jerseys wholesale
red bottoms
birkin handbags
uggs outlet
nike zoom
canada goose outlet
louboutin shoes
pandora jewelry outlet
fred perry polo shirts
oakley sunglasses outlet
uggs outlet
louis vuitton outlet store
yeezy boost 350
kate spade outlet
burberry outlet online
fred perry shirts
valentino outlet
coach handbags outlet
adidas yeezy shoes
polo ralph lauren outlet
canada goose jackets
cheap jordan shoes
ralph lauren outlet
michael kors
ray bans
michael kors outlet store
moncler outlet online
canada goose
pandora uk
pandora charms sale clearance
moncler jacket
columbia sportswear outlet
adidas campus shoes
pandora charms outlet
ralph lauren uk
air max shoes
uggs outlet
moncler jackets
polo ralph lauren outlet
pandora charms sale clearance
coach outlet online
mbt
ray ban sunglasses cheap
longchamp bags
moncler sale
coach outlet store online
uggs outlet
michael kors bags
uggs outlet
coach outlet online
coach outlet online
ugg boots
polo ralph lauren
moncler jackets
cheap oakley sunglasses
oakley sunglasses outlet
uggs outlet
christian louboutin sale
moncler outlet online
coach outlet online
ralph lauren
cheap jordan shoes
coach factory outlet
ugg boots outlet
ralph lauren sale
cheap oakley sunglasses
michael kors
coach outlet canada
cheap ray ban sunglasses
pandora charms sale clearance
canada goose coats
fitflops sale
ugg outlet
adidas superstars
adidas outlet store
ralph lauren outlet online
adidas nmd r1
uggs outlet
ugg outlet store
ugg boots
coach factory outlet
nike shoes
yeezy shoes
cheap jordans for sale
kate spade outlet online
canada goose outlet
supreme shirts
coach outlet online
coach outlet online
fitflop sandals
michael kors handbags
nfl jerseys
pandora charms
coach outlet store
uggs outlet
pandora charms
michael kors outlet store
adidas nmd r1
tory burch shoes
polo ralph lauren
mbt shoes sale
ugg boots women
coach outlet online
coach factory outlet online
salvatore ferragamo outlet
air max
ralph lauren
yeezy shoes
coach factory outlet online
red bottom
michael kors bags
mlb jerseys
ralph lauren uk
the north face outlet
air jordan shoes
polo outlet online
ray bans
adidas outlet online
discount ray ban sunglasses
hermes handbags
michael kors outlet online
coach factory outlet
mlb jerseys cheap
louis vuitton factory outlet
ralph lauren uk
kate spade outlet online
ugg outlet store
ugg outlet
louis vuitton outlet
kate spade handbags
adidas nmd r1
michael kors
canada goose outlet online
ray ban sunglasses discount
moncler jackets
canada goose coats
michael kors handbags outlet
adidas store
coach outlet online
michael kors outlet store
canada goose parka
adidas yeezy
longchamps
coach outlet online
uggs on sale
michael kors outlet store
nike outlet
air jordan retro
mbt
ray ban sunglasses sale
adidas yeezy boost
canada goose
christian louboutin shoes
nike sneakers
adidas ultra boost
ugg outlet
nike air max 97
uggs outlet
harden vol 1
canada goose jackets
timberland boots
moncler coats
adidas yeezy
coach outlet online
yeezy boost 350
fitflop shoes
longchamp outlet
pandora charms sale
ugg
canada goose sale
ray ban sunglasses outlet
kate spade outlet
canada goose jacket
longchamp outlet store
hermes bags
nike outlet online
canada goose jackets
uggs outlet
ugg boots
ugg sale
nike air max 97
longchamp bags
ugg boots outlet
coach outlet online
nike outlet store
nike air max 2018
yeezy boost
kate spade outlet online
adidas outlet store
canada goose jackets
canada goose outlet
adidas sneakers
kate spade outlet online
salvatore ferragamo shoes
ray ban sunglasses outlet
michael kors outlet online
supreme uk
michael kors outlet clearance
air jordans
michael kors outlet store
coach outlet store online
cheap ray ban sunglasses
north face outlet
adidas superstar shoes
kate spade handbags
pandora charms outlet
timberland outlet
moncler uk
coach factory outlet online
burberry outlet online
pandora jewelry
supreme clothing
retro 11
oakley sunglasses outlet
pandora charms outlet
moncler pas cher
burberry outlet
nike air max 2018
canada goose outlet
michael kors outlet canada
canada goose
michael kors outlet
adidas yeezy boost 350
ralph lauren outlet online
canada goose jackets
michael kors outlet clearance
canada goose coats
moncler coats
polo ralph lauren outlet
air max
coach factory outlet online
jordan shoes for sale
adidas outlet online
cheap ray bans
ralph lauren outlet online
pandora charms sale
canada goose jackets
louis vuitton outlet online
ugg boots
coach outlet store online clearance
coach outlet online
philipp plein outlet
birkenstock shoes
uggs on sale
coach factory outlet online
uggs outlet
cheap uggs
cheap oakley sunglasses
uggs outlet
supreme shirts
nfl jerseys
coach outlet online
ralph lauren
canada goose sale
burberry outlet online
michael kors outlet canada
coach factory outlet online
coach factory outlet online
clb0103

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest