Show Posts
|
|
Pages: 1 ... 3 4 [5] 6
|
|
61
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: June 04, 2008, 12:38:54 am
|
|
I got the MaxSerial kit today, soldered it together, and then figured out how to get the RS-232 data the 150 feet from my "laboratory" (where my computer is) to the basement (where the Arduino figures out when to circulate water through the solar panel). I'd considered using the 150 feet of shielded USB cable but opted instead to use a few conductors inside a mostly-unused CAT3 cable (I have a lot of CAT3 that I run to sensors and what not). The data to and from the MaxSerial is very reliable, and it's great having the Diecimila-vintage ability to upload software any time without a reboot - I just change the software, upload it, and sit back and watch the effects. It's like communicating with a probe on Mars, but without the speed-of-light latency issues.
|
|
|
|
|
62
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: May 23, 2008, 05:23:25 pm
|
Oh, for some reason I was using the term "MaxSerial" wrong - I meant a serial chip such as the Max232, and your use of it primed my brain with the right idea but the wrong word. I didn't know about MaxSerial - it looks like exactly what I need - a serial version of the Arduino that plugs in where the NG was. Thanks! I'll look further at your stuff to see what's what. You should get yourself listed on this page: http://www.arduino.cc/en/Main/Buyor is it another Iduino-type situation? Sometimes the distinguishing characteristics between different open source licenses and their commercial derivatives gives me a headache.
|
|
|
|
|
63
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: May 23, 2008, 03:59:44 pm
|
|
Does anyone know where I could buy an old Serial Arduino? I could hook up a MaxSerial or retrofit one of my Arduino-capable & serial-equipped Olimex boards, but a Serial Arduino would plug right in and require a minimum of work. If anyone here has one, are you interested in selling it? It doesn't even need to come with a working Atmega processor.
|
|
|
|
|
64
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: May 23, 2008, 03:45:51 pm
|
|
In this case I'm powering it with USB and "reboot" means to completely disconnect the USB cable, which kills the power to the board. When I'm programming it remotely, I use a relay to jumper the reset button (in these old Arduino NGs you must reboot before reprogramming, though there's too much noise in a line that long to run the reset wire 150 feet without getting constant reboots - thus the relay). This setup allows me to update software on the Arduino from my computer at the other end of the house as I add more routines and nuances to the solar panel control algorithm.
When you say "CAT6 with USB ends" - you mean just the connectors, no repeater hardware? And that actually worked (albeit imperfectly) across 150 feet? And without shielding? I've actually thought about doing a simple serial link, since I have no need for high speed communications. I could just remove the repeater hardware and the USB connectors and use DB9 instead. The cable is shielded and the individual conductors are twisted - even with primitive RS232 tech it should be able to work reliably for 150 feet.
I'm pretty sure from my tests that all my reliability issues come from the cable. I guess this is why it was discontinued.
|
|
|
|
|
65
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: May 22, 2008, 05:49:21 pm
|
|
Restarting the serial port from the Arduino would actually be an ideal way to handle the problem. I could do it every hour even, since in this application constant communication isn't essential, but eventual communication is. Is there an easy way to do this? I know how to do all the usual things with the serial port, but I've never seen an example of someone restarting it.
|
|
|
|
|
66
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: May 22, 2008, 09:57:31 am
|
|
I should add, by the way, that the serial port lockups I'm talking about only affect the Arduino's serial port - the program it's looping through is unaffected. But when this happens, my communication with the Arduino is cut off until I reboot it.
|
|
|
|
|
67
|
Forum 2005-2010 (read only) / Interfacing / Re: serial port unreliable
|
on: May 21, 2008, 05:26:08 pm
|
|
i've hooked up a laptop near the Arduino to see if the problems are cable related, but...
The 150 foot USB cable has hardware repeaters built into it and is exactly what it is -- a prebuilt USB cable, but it is cheap and Chinese, so perhaps it is the problem. But why should the serial port require an Arduino reboot when there is a problem? Shouldn't it be able to handle issues more gracefully? I don't mind occasional occurrences of bad data -- I just can't handle the lockups.
|
|
|
|
|
68
|
Forum 2005-2010 (read only) / Interfacing / serial port unreliable
|
on: May 21, 2008, 01:04:39 pm
|
|
I've had an Arduino-based circuit controlling a solar hydronic installation for one and a half years now (it's an Arduino NG with an ATMEGA168 chip). This system is completely reliable, making sure water gets heated when the sun is out and turning off everything when the water coming from the panel is too cool to be useful. I can monitor this Arduino remotely using a 150 foot USB cable (they used to be available for cheap from PacificGeeks.com until that company started charging a minimum of $35 for shipping and handling). My question concerns the reliability of the Arduino serial port. It seems to work for awhile (a few hours) and then it inevitably locks up, requiring the board to be rebooted in order to resume communications. I've seen this behavior with several NG boards, connected to both Windows and Debian machines. At least on the Windows machine, I'm running the latest version of the FTDI USB Drivers. Does anyone know how to improve the reliability of the serial port?
|
|
|
|
|
71
|
Forum 2005-2010 (read only) / Interfacing / Arduino Atmega8 vs Atmega168 pin mapping
|
on: October 29, 2006, 02:39:44 pm
|
Does anyone know to what extent the Atmega168 and Atmega8 have different PDIP pinouts? I'm noticing a strange behavior with my Arduino board when I use Atmega168 vs Atmega8. When I set Arduino's Digital Pin 13 to input, I can use it that way successfully if the processor is an Atmega8. But if it's an Atmega168 it always reads as 0. Pin 12 works fine with both processors. Now it's possible I have a defective Atmega168 - but I've seen this behavior with two Atmega168s. I just looked at the Arduino USB schematic http://www.potemkin.org/uploads/Pid/arduino_usb.jpgand see that there is a 1K resistor only on Digital Pin 13 - perhaps the Atmega168 is more sensitive to its effects than the Atmega8.
|
|
|
|
|
72
|
Forum 2005-2010 (read only) / Interfacing / Re: 1-wire
|
on: October 23, 2006, 01:04:28 pm
|
|
unless, of course, you're making a generic USB-to-one-wire interface with an Arduino board. that would be a useful gizmo. i imagine the protocol is some sort of serial thing with device addressing, sort of like usb but half-duplex.
|
|
|
|
|
74
|
Forum 2005-2010 (read only) / Interfacing / Re: 1-wire
|
on: October 22, 2006, 12:52:17 pm
|
|
hmm, one wire? they'd have to have two to actually do anything, and then they'd be thermistors, in which case they'd be variable resistors.
1. measure their resistance at room temperature. 2. find a fixed resistor with that measured value (or something near it)
3. connect one between VCC and an analog-in on the Arduino 4. connect the fixed resistor between analog-in and ground.
This makes a voltage divider based on the value of your thermistor, and the numbers from reading the analog in will have a linear relationship to temperature. you just have to find out what that relationship is and write a function to translate. I keep everything integer in my thermistor readings to keep things simple. Thus 989 means 98.9 degrees Fahrenheit, etc.
|
|
|
|
|