Show Posts
|
|
Pages: 1 [2] 3 4 ... 20
|
|
17
|
International / Hardware / Re: pilotare relè mediante uln2803
|
on: April 08, 2013, 09:49:37 am
|
|
Il jp1 è un jumper che è ininfluente per l'utilizzo dell'uln, ed effettivamente mi sono dimenticato la massa dell'alimentazione a 12 volt, che comunque va collegata a quella di arduino e uln.
|
|
|
|
|
19
|
International / Hardware / Re: Info TTL convert Usb
|
on: March 28, 2013, 04:57:50 am
|
Leo, in questi giorni ho proprio un problema di programmazione con un arduino micro, nelle info c'è scritto di collegare il pin del reser al RTS della seriale, tu invece hai scritto DTR, ma qual'è il pin corretto? Io l'ho collegato all'RTS e non funziona. L'adattatore è auto costruito con un max232, l'ho controllato con il tester per vedere se effettivamente tutti i segnali vengono traslati correttamente e non ci sono problemi. Come adattatori seriale (5V, 3,3V) - usb consiglio questi, che esportano tutti i pin e non solo tx e rx. Grazie. Alberto
|
|
|
|
|
21
|
International / Software / Re: Problema scrittura/lettura EEPROM!!
|
on: March 27, 2013, 04:49:38 am
|
Se vuoi usare la eeprom la prima cosa da fare è una mappa dei dati che ci vuoi salvare, in questo modo se hai dei dubbi sulle posizioni di lettura e scritturate li risolvi in un attimo, vedi http://www.panu.it/ardupower/. Li la password l'ho salvata in chiaro, tanto è dentro il micro, ma due volte, così se mentre la salvo si corrompe posso comunque entrare nel dispositivo. Alberto
|
|
|
|
|
26
|
International / Hardware / Usb Serial converter per programmare Mini
|
on: March 19, 2013, 08:16:43 am
|
Ciao, ho questo adattatore usb seriale che pare essere compatibile con Arduino. Tra i pin dell'uscita c'è n'è uno che si chiama rst e dovrebbe essere connesso al reset dell'arduino. Ho letto la documentazione e per resettare l'Arduino viene usata la linea rts della seriale tramite un condensatore. Ho collegato il tutto e non funziona niente. Ho provato a collegare il tester tra il pin rst dell'adattatore e la massa, facendo girare questo programma import gnu.io.*; public class SerialTest { public static void main(String[] args) { try { //String portName = "/dev/cu.SLAB_USBtoUART"; String portName = "/dev/tty.SLAB_USBtoUART"; //String portName = "/dev/tty.usbserial"; //String portName = "COM6"; System.out.println(portName); CommPortIdentifier portid = CommPortIdentifier.getPortIdentifier(portName); SerialPort serialPort = (SerialPort)portid.open("Serialport DTR/RTS test", 1000); serialPort.setSerialPortParams(9600,SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE); //serialPort.disableReceiveTimeout(); for (int i=0 ; i<5 ; i++) { System.out.println("ON"); serialPort.setDTR(true); serialPort.setRTS(true); Thread.sleep(1000); System.out.println("OFF"); serialPort.setDTR(false); serialPort.setRTS(false); Thread.sleep(1000); } } catch (Exception e) { e.printStackTrace(); System.exit(1); } System.exit(0); } } in java che alza e abbassa per un secondo i pin rts e cts, ma la tensione sul pin non cambia, rimane sempre 5v, ho provato anche con una resstenza di pull down da 1K ma niente, di adattatori ne ho due e li ho provati entrambi. Il programma funziona perché usandolo su un adattatore usb rs232 lo stato dei pin rts e dtr cambia da -6 a +6v. La domanda: è qualcuno ha già usato sti adattatori e magari ha capito cosa c'è che non va (a parte ovviamente che sono cinesi).La trasmissione dati seriale sui pin tx e rx funziona bene. Grazie. Alberto
|
|
|
|
|
27
|
International / Generale / Re: Progetto Arduino, Atmel e licenze
|
on: March 15, 2013, 04:49:31 am
|
Leggere http://arduino.cc/en/Main/FAQin particolare: Can I build a commercial product based on Arduino? Yes, with the following conditions: - Physically embedding an Arduino board inside a commercial product does not require you to disclose or open-source any information about its design.
- Deriving the design of a commercial product from the Eagle files for an Arduino board requires you to release the modified files under the same Creative Commons Attribution Share-Alike license. You may manufacture and sell the resulting product.
- Using the Arduino core and libraries for the firmware of a commercial product does not require you to release the source code for the firmware. The LGPL does, however, require you to make available object files that allow for the relinking of the firmware against updated versions of the Arduino core and libraries. Any modifications to the core and libraries must be released under the LGPL.
- The source code for the Arduino environment is covered by the GPL, which requires any modifications to be open-sourced under the same license. It does not prevent the sale of derivative software or its inclusion in commercial products
In all cases, the exact requirements are determined by the applicable license. Additionally, see the previous question for information about the use of the name “Arduino”.
|
|
|
|
|
28
|
International / Hardware / Re: Relè statico a 5V
|
on: March 07, 2013, 07:30:23 am
|
|
A grandi linee posso dirti che non ci sono problemi, ma su dai non essere timido, dacci qualche informazione in più sul relè, magari una foto, così possiamo risponderti correttamente.
|
|
|
|
|