"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #60 on: January 30, 2012, 03:17:51 pm » |
If all of these boards used to work at some point, I'd try analyzing what you did to them. And if you find a common 'thing' (can't think of a better word right now), stop doing that.
|
|
|
|
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1049
|
 |
« Reply #61 on: January 31, 2012, 05:07:55 pm » |
just tried the instructions, just for fun seemed clear enough to me oh - and got the expected result didn't seem patronising (until I read this thread!) could be idiot-proof trouble is they outnumber us already and they're breeding like rabbits [/soapbox] 
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #62 on: February 21, 2012, 01:51:55 pm » |
Great documentation!!! (And I regularly read IBM mainframe docs.) I followed the instructions and it behaved exactly as expected; a text version of ping. I strung together some code to do the same thing. The problem is all I get back is rectangles under the serial monitor. Can you think of something to account for that? Here's my code - void setup() { Serial.begin(9600); pinMode(2, INPUT); }
void loop() { if (Serial.available() > 0) { Serial.println(Serial.read()); } } }
Any help would be appreciated. Regards, kk
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Online
Brattain Member
Karma: 279
Posts: 15317
Measurement changes behavior
|
 |
« Reply #63 on: February 21, 2012, 02:31:57 pm » |
Great documentation!!! (And I regularly read IBM mainframe docs.) I followed the instructions and it behaved exactly as expected; a text version of ping. I strung together some code to do the same thing. The problem is all I get back is rectangles under the serial monitor. Can you think of something to account for that? Here's my code - void setup() { Serial.begin(9600); pinMode(2, INPUT); }
void loop() { if (Serial.available() > 0) { Serial.println(Serial.read()); } } }
Any help would be appreciated. Regards, kk Be sure the serial monitor is set to the same baudrate that your sketch is using (9600) in your case. The selection is done at the bottom right of the serial monitor window when it's opened. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #64 on: February 23, 2012, 07:17:20 am » |
I've set it to a matching baud rate with the similar results.
I found a port monitor and sent it a string of 'a's. Here's what the monitor saw- Port opened by process "javaw.exe" (PID: 6424)
Request: 2/23/2012 7:14:25 AM.52364 (+180.2188 seconds)
61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 aaaaaaaaaaaaaaaa 61 61 61 61 0D 0A aaaa..
Answer: 2/23/2012 7:14:25 AM.53864 (+0.0156 seconds)
39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 97..97..97..97.. 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 97..97..97..97.. 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 97..97..97..97.. 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 97..97..97..97.. 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 39 37 0D 0A 97..97..97..97.. 31 33 0D 0A 31 30 0D 0A 13..10..
Ideas anyone?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35542
Seattle, WA USA
|
 |
« Reply #65 on: February 23, 2012, 10:00:06 am » |
Perhaps a peak at an ascii table ( http://www.asciitable.com/) might shed some light.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #66 on: February 23, 2012, 08:06:35 pm » |
Thank you for the tip on ASCII chart. (Personally, I bleed EBCDIC.)
After seeing 'a'=97, I tried all println formats. BYTE has been dropped, but the compiler pointed me in the right direction. This is the code that works - int crap = Serial.read(); Serial.write(crap);
Thank you for the assist, kk
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #67 on: March 06, 2012, 11:02:26 am » |
I recently bought a Arduino Mega 2560.
Everything appeared to be working fine to start with, I managed to blink LED's and show temperature in the serial monitor etc.
The latest thing i have tried to do was to show text on an LCD. The Text was really dull even with the POT turned up and down.
Now when i connect my Arduino to the USB cable it does not show up in the Arduino software.
Mega 2560 is selected in the board options, but the port is blanked out, as if the pc cannot see the board.
I have tried different ports and the cable is brand new, and work to start with.
I have trioed pressing the Reset button which also does nto appear to work. I have tested the voltages on the power pins and they all seem fine. neither tx or rx LED illuminate but the power LED does.
PC does not see board during loop back test
Any ideas?
Thanks
Dan
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #68 on: March 31, 2012, 10:56:31 am » |
My uno suddenly stoped working.. im afraid I may have touched two wires that shouldn't have while working with it last night. Power light comes on, but the other lights dont blink like they normally would when turning on and dont do anythign while trying upload to the board... I keep getting the error "programmer not responding". My computer detects the USB and so does the arduino program... but when i tried the loop test it failed to echo back the text.... have not tried another ocmputer yet, but I tried my MEGA board on the same ocmputer and it works fine...
WTF!?
|
|
|
|
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #69 on: March 31, 2012, 11:08:45 am » |
No no, not WTF but "cause and consequence".
Your problem is easily solved by throwing some money at it (get a new one).
BTW, did you remove the chip before trying the loop-back test?
|
|
|
|
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #70 on: March 31, 2012, 11:11:04 am » |
haha I know I know, but spending money is last result!
and remove what chip? My arduino uno doesnt have any removable chips (that i know of).
|
|
|
|
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #71 on: March 31, 2012, 11:31:06 am » |
So you have the all-SMD version. Tough luck.
|
|
|
|
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #72 on: March 31, 2012, 11:56:35 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 1
|
 |
« Reply #73 on: June 27, 2012, 03:18:14 am » |
mau tanyak scrip untuk mengoneksi arduino uno atg328 gmn yaaa?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #74 on: June 27, 2012, 06:29:48 am » |
This *is* the English language part of the forum.
|
|
|
|
|
Logged
|
|
|
|
|
|