Grazie a tutti per le celeri risposte:
Si puo' collegare alla porta seriare DB9 di un PC fisso per programmarlo, con un cavo adatto senza...
Si può fare ma ti serve un convertitore da RS232 a TTL (un max232 con 4-5 condensatori piccoli) si fà in 15 minuti
Visto che i tuoi 15 minuti per me sono una giornata intera, per capire come realizzare i collegamenti, e
visto che i componenti mi costerebbero piu' o meno lo stesso, ho visto che lo stesso negozio su ebay vende anche i moduli di conversione da USB a RS232 TTL, però non ho capito quale è che fa al caso mio, vi elenco quali ho trovato. Sembra che tutti non abbiano il segnale DTR, che non mi ricordo dove ho letto che è utile per resettare l'interfaccia. Come è la situazione?
Questo è l'arduino mini cinese che vorrei comprare a 1,77€:
http://www.ebay.it/itm/New-Pro-Mini-atmega328-Board-5V-16M-Replace-ATmega128-Arduino-Compatible-Nano-/131278764259?pt=LH_DefaultDomain_0&hash=item1e90d2f8e3
Questo è lo stesso ma venduto insieme al convertitore USB, ma senza cavo di collegamento a 4,02€ :
http://www.ebay.it/itm/Pro-Mini-atmega328-5V-16M-For-Arduino-6pin-CP2102-USB-2-0-to-UART-TTL-module-/161286265341?pt=LH_DefaultDomain_0&hash=item258d6919fd
http://www.ebay.it/itm/FT232RL-USB-To-Serial-Adapter-Module-Pro-Mini-Atmega328-5V-16M-for-Arduino-/131190157012?pt=LH_DefaultDomain_0&hash=item1e8b8aeed4
e questi alcuni convertitori USB to SERIAL TTL:
http://www.ebay.it/itm/New-PL2303-USB-To-RS232-TTL-Converter-Adapter-Module-/130682850512?pt=LH_DefaultDomain_0&hash=item1e6d4e0cd0
http://www.ebay.it/itm/USB-To-RS232-TTL-USB-To-COM-Serial-Adapter-Cable-Module-PL2303HX-Converter-/131175999976?pt=LH_DefaultDomain_0&hash=item1e8ab2e9e8
http://www.ebay.it/itm/PL2303TA-USB-TTL-to-RS232-Converter-Serial-Cable-module-for-win-XP-VISTA-7-8-8-1-/141284735852?pt=LH_DefaultDomain_0&hash=item20e539fb6c
http://www.ebay.it/itm/TOP-USB-To-RS232-TTL-CH340G-Converter-Module-Adapter-STC-replace-Pl2303-CP2102-/131243727005?pt=LH_DefaultDomain_0&hash=item1e8ebc589d
http://www.ebay.it/itm/USB-To-RS232-TTL-CH340-Auto-Converter-Module-Completely-replace-PL2303-/130892424691?pt=LH_DefaultDomain_0&hash=item1e79cbe5f3
http://www.ebay.it/itm/FTDI-FT232RL-USB-to-Serial-adapter-module-USB-TO-TTL-RS232-Arduino-Cable-6Pin-HO-/131154975411?pt=LH_DefaultDomain_0&hash=item1e89721ab3
Non hai bisogno di Arduino per un progetto del genere.Potresti usare un NE555 in configurazione monostabile
Come avevo detto,voglio cogliere l'occasione per imparare ad usare e programmare arduino e poi pagandolo solo 2 euro compresa spedizione dalla cina, mi costa meno che comprare i singoli componenti per costruire il circuito con il NE555.
arduino sì, ma i relè no o meglio....te ne servo uno solo che comanda l'elettromagnete
Si è vero che me ne serve uno solo, ma visto il prezzo (5€) compro la board da 8 relè, che mi potrebbe tornare utile per un realizzare un robot o altro in futuro.
Grazie a tutti per il supporto.
Per il discorso del reset ho trovato questo:
Automatic (Software) Reset
Rather then requiring a physical press of the reset button before an upload, the Arduino Pro Mini is designed in a way that allows it to be reset by software running on a connected computer. One of the pins on the six-pin header is connected to the reset line of the ATmega168 via a 100 nanofarad capacitor. This pin connects to one of the hardware flow control lines of the USB-to-serial convertor connected to the header: RTS when using an FTDI cable, DTR when using the Sparkfun breakout board. When this line is asserted (taken low), the reset line drops long enough to reset the chip. The Arduino software uses this capability to allow you to upload code by simply pressing the upload button in the Arduino environment. This means that the bootloader can have a shorter timeout, as the lowering of the reset line can be well-coordinated with the start of the upload.
This setup has other implications. When the Pro Mini is connected to either a computer running Mac OS X or Linux, it resets each time a connection is made to it from software (via USB). For the following half-second or so, the bootloader is running on the Pro. While it is programmed to ignore malformed data (i.e. anything besides an upload of new code), it will intercept the first few bytes of data sent to the board after a connection is opened. If a sketch running on the board receives one-time configuration or other data when it first starts, make sure that the software with which it communicates waits a second after opening the connection and before sending this data.