Show Posts
Pages: [1]
1  Development / Suggestions for the Arduino Project / Re: Serial Monitor Suggestion - Reset Button on: February 10, 2011, 01:50:20 am
Lefty, that terminal program is great. Does it do ANSI emulation too? I will try it but maybe you know...  Once neat thing that I tried was cycling the RTS to cause a reset without having to close and reopen the port. I wonder if a macro button could be set to do that...

One idea is that the IDE could create a virtual serial port and open and close it as needed for the load process. Then you could connect any terminal application to the virtual port and give the IDE plenty of control to make it work well.
2  Development / Suggestions for the Arduino Project / Serial Monitor Suggestion - Ansi Terminal Support on: February 06, 2011, 09:59:01 pm
How about having the serial monitor emulate an ANSI or VT100 terminal so we could use escape sequences to position text on the window. Maybe do color control and some of the other ANSI commands.

I use ANSI from embedded applications with the Arduino now, but I have to run Putty or other emulator on a separate serial port to do it now.

If we cant get ANSI on the serial monitor, I could do a serial switch to connect a second terminal with ANSI support. Use an IO pin, pulled up, so its high after reset. In this state the serial port is connected normally, but once the code starts it could set this pin to output, pull it low, and switch the serial connection to the secondary interface.

3  Development / Suggestions for the Arduino Project / Serial Monitor Suggestion - Automatic close and reopen on: February 06, 2011, 09:53:26 pm
Currently if you have the serial window open, when you start the boot load process the window closes.

Would be nice if it just closed the serial connection, maybe with a message about the boot load process, then automatically reconnected when the boot load process completes.

It should be very easy to just reopen the window, or even make it a user option to always open the monitor window after a boot load.
4  Development / Suggestions for the Arduino Project / Serial Monitor Suggestion - Reset Button on: February 06, 2011, 09:50:30 pm
Would be nice to touch a button in the terminal display to reset the Arduino. Opening and closing the serial window does this already due to the serial port open causing a reset via the DTR signal.

What I'm suggesting is that you have a button that will quickly close and reopen the serial port, thereby causing the same reset the boot load process does.
5  Development / Suggestions for the Arduino Project / Small bug in IDE on: February 06, 2011, 09:48:00 pm
If you select to save from the file menu during a compile process, the compiler may fail due to some file access issue.

Should disable the file save during the compile process. This is not a major deal but might cause someone troubleshooting pain.
6  Forum 2005-2010 (read only) / Interfacing / Re: serial I/O on: January 04, 2009, 07:40:23 pm
The transmit line from the FTDI USB chip is connected via a series resistor so you can override it fairly easily.

Note that the FTDI chip does not tristate the output so when serial traffic is received it will try to toggle the line but again this is via a fairly large value resistor.

If the line is loaded by another output you will not be able to load new firmware. This may not be a problem if you can disconnect the other output during the programming cycle.
7  Forum 2005-2010 (read only) / Workshops / Re: Houston, TX workshop on: January 04, 2009, 07:33:45 pm
I am in the Austin area but would like to attend your meeting. I have a son in Houston that may also attend. How do we sign-up to be notified etc...
8  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: US Vendors? on: August 10, 2010, 04:51:53 pm
I like Sparkfun and Modern Device Company

http://www.moderndevice.com/

http://www.sparkfun.com/commerce/categories.php?c=103
9  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using three PWM outputs, ext. interrupt and timer on: January 04, 2009, 05:50:56 pm
There are a few options I can see here...  

You could do the PWM control on the capture registers of Timer1. Use it for both your interrupt and PWM. You would have to do the code yourself though.

I have not tried this myself but maybe you could use the capture register to set the PWM output then clear it in your ISR. You calculate the correct count value to set the PWM output and load that into the capture compare register.

Software PWM using your timer1 interrupt. This might not be practical unless you can get away with low frequency PWM or low resolution in the number of available percentage steps.

Another option might be to simple enable the overflow interrupt and let the Arduino lib control the timer. I have not studied the code but I suspect that the timeout interval setup by the library is fixed and may not be too fast for you to deal with. This way you might continue to use the built in PWM functions.
10  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Newbie question on: January 04, 2009, 06:08:34 pm
No not all the Digital lines are PWM capable. Digital lines 3, 5, 6, 9, 10, and 11 are PWM. You should see the PWM label on the Arduino board for these pins.
11  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Newbie question on: January 04, 2009, 05:57:56 pm
digitalWrite will set a pin which has been enabled for output to a 1 or a 0. In analog terms this would be 0=0 or 1=255. But for the digital function the pin is either set to 0V or 5V for 0 or 1 respectively.

The analogWrite function works on PWM output pins. It actualy sets the PWM output percentage with 0=0% high and 255=100% high. This can be used as an analog output depending on what you are connecting it to. Most things will work just fine. LEDs for example do not need a hardware filter. If you select a PWM output enabled pin and connect the LED there, use analogWrite to control the brightness of that LED.

I have some more information about using PWM pins for analog output in an article at uCHobby. http://www.uchobby.com/index.php/2008/01/08/arduino-audio-dac-options/

Does this help?
12  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Higher voltage (Metal Detector) on: January 04, 2009, 06:45:46 pm
Here is a BJT circuit that may do what you need. I am not sure you could do it with a single FET. The key is that you need to switch on/off the FET with 5V to switch 9V at the output.

The circuit would be simpler if you could switch the return. You could use a single FET or BJT switched from a digital I/O pin if you switch the ground side.

The switch shown below will switch the 9V using a 5V digital output.  This circuit can also be configured as a current limiter by adding two diodes and a resistor. Again I would need to know what you are planning to drive to help with that.





                                     9V  ---o-----.
                                            |     |
                                            |     |
                                           .-.    |
                                           | |10K |
                                           | |    |
                                           '-'    |
                                            |     |
                                            |     |
                                            |     |
                                       1K_  |   |<
                                  .---|___|-o---|  2N2907
                                  |             |\
                                  |               |
                   1K_          |/                |  9V Switched
          Logic  -|___|---o-----|  2N2222         '------
                          |     |>
                         .-.      |
                         | |10K   |
                         | |      |
                         '-'      |
                          |       |
                          |       |
                          '-------o
                                  |
                                  |
                                 ===
                                 GND
(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)

Pages: [1]