Loading...
  Show Posts
Pages: 1 ... 3 4 [5] 6
61  International / Italiano / Re: far parlare arduino on: June 07, 2011, 09:55:21 am
che ne dite di espeak http://espeak.sourceforge.net/ ?
62  International / Italiano / Re: far parlare arduino on: June 06, 2011, 05:03:53 pm
a questo punto la soluzione sembra essere mp3 shield per la riproduzione a patto di riuscire a creare al volo la parola/frase da far ripetere
pensavo di usare espeak per creare un file audio a partire da un testo che potrebbe essere dinamico, il problema sta nel trasferire poi questo file allo shield per essere eseguito
qualche suggerimento??? è fattibile per secondo voi??
63  International / Italiano / Re: far parlare arduino on: June 06, 2011, 10:01:12 am
scusate ragazzi ma la definizione dei nuovi fonemi per l'italiano non si può fare via software senza impelagarsi con l'hardware??
64  International / Italiano / Re: far parlare arduino on: June 05, 2011, 03:49:32 pm
ma non esiste un qualche supporto per la lingua italiana?
65  International / Italiano / sensori indossabili on: June 05, 2011, 01:24:58 pm
salve, mi sono imbattuto in questo interessante progetto http://www.instructables.com/id/Fabric-amp-Bead-Tilt-Sensing-Bracelet/

volevo sapere se qualcuno ha avuto esperienza con questo tipo di "sensori" indossabili, nell'articolo si parla di neoprene come conduttore e della possibilità di rilevare i movimenti della mano
sapete se esiste qualche progetto con arduino,dove acquistare questi materiali
grazie
66  International / Italiano / Re: far parlare arduino on: June 05, 2011, 06:34:52 am
con il modulo mp3 suppongo debba già avere pronti i file mp3 da utilizzare, giusto? io volevo trovare una soluzione in cui invio una stringa testuale che viene riprodotta in audio
67  International / Italiano / Re: far parlare arduino on: June 05, 2011, 05:30:53 am
grazie, sembra interessante! tu hai avuto modo di provarlo con arduino?
68  International / Italiano / far parlare arduino on: June 05, 2011, 02:33:57 am
Salve a tutti, vorrei aggiungere un supporto audio ad arduino, una sorta di sintetizzatore in grado di ripetere delle frasi registrate tipo TTS (text to speech). In rete ho trovato questo shield  http://spikenzielabs.com/SpikenzieLabs/VoiceShield.html che la spark fun ad esempio non commercializza più. Volevo chiedervi un consiglio su altre possibili soluzioni magari a costi contenuti.
grazie!!!!
69  International / Hardware / Re: ArduPower la ciabatta telnetcontrollata on: May 16, 2011, 10:15:25 am
Ciao per l'integrazione in freedom posso fornirti io il plugin. Dovresti solo provarlo sul campo per vedere se funziona.
Mi serve sapere solo questo: i comandi che arduino riceve sono pow+numero linea e on/off corrispondente al comando, giusto?
La connessione avviene tramite socket tcp, vero?
In caso di problemi, c'é un codice di ritorno che può essere intercettato per sapere che l'operazione non é andata a buon fine?
70  International / Hardware / Re: ArduPower la ciabatta telnetcontrollata on: May 15, 2011, 06:00:19 am
Ciao Alberto, un progetto molto interessante!
Vorrei chiederti se vorresti collaborare all'integrazione del tuo prodotto nel nostro software domotico open source.
In pratica dovresti testare sul campo con il tuo il componente software che andrei io stesso a realizzare.
Ho integrato una relay board della progettihwsw di cui si possono trovare i dettagli a questo link http://code.google.com/p/freedomotic/wiki/ProgettiHwSwEthernetBoard

Da quanto ho capito dovrebbe essere semplice adattare il tutto al tuo ArduPower.
Fammi sapere e ti interessa e se hai bisogno di ulteriori delucidazioni
Grazie
71  Topics / Home Automation and Networked Objects / Re: Insteon, Z-Wave and Apps on: May 04, 2011, 07:44:46 am
Hi! We are working on an open source domotic project to control objects using different tecnologies.
Here there is the forum topic http://arduino.cc/forum/index.php/topic,58844.0.html
Community is open to all contribute!!
72  International / Italiano / Re: Info kit di avvio on: May 02, 2011, 07:31:20 am
Ciao, io personalmente ho comprato da ethermania ed ho contatti diretti con il titolare: sono molto gentili e rapidi nelle consegne.
Inoltre sono molto competenti anche dal punto di vista tecnico.
Ho realizzato un piccolo progetto con un loro shield e mi hanno assistito con molte spiegazioni tecniche, pubblicando poi il tutto sul loro blog.
73  Topics / Home Automation and Networked Objects / Re: Arduino + Ethernet Shield + X10 =\ Home Automation on: April 29, 2011, 03:24:51 pm
Hi! Very interesting your project!
Have you thought about a software to control all functions?
74  Using Arduino / Programming Questions / Re: problem reading a string from ethernet shield on: April 19, 2011, 09:12:30 am
Thanks PaulS!! You're a genius!!

I solved moving outStream.close() after reading from inStream:

 inStream.close();
 outStream.close();
 socket.close();
75  Using Arduino / Programming Questions / Re: problem reading a string from ethernet shield on: April 19, 2011, 08:36:42 am
This is the complete code for my function sending a message to arduino ethernet shield. It is part of a domotic project more complex

Code:
public class ETHArduinoBoard extends Actuator {

    Properties protocol = new Properties(); //defines the protocol using a hashmap
    Socket socket = null;
    DataOutputStream outStream = null;
    BufferedReader inStream = null;
    String response = null;

    public ETHArduinoBoard() {
        super("ETH Arduino Board");
        //fillProtocolData();
        //connect(); //connects to eth device
        start(); //starts the plugin
    }


  private void connect(Command c) {
      try {
            socket = new Socket(c.getProperty("socket-host"), new Integer(c.getProperty("socket-port")));
            BufferedOutputStream buffOut = new BufferedOutputStream (socket.getOutputStream ());
            outStream = new DataOutputStream (buffOut);
          } catch (UnknownHostException e) {
            System.err.println("Unable to connect to host '" + configuration.getProperty("socket-host") + "' on port " + configuration.getProperty("socket-port"));
        } catch (IOException e) {
            System.err.println("Couldn't get I/O for "
                    + "the connection to " + c.getProperty("socket-host") + "' on port " + c.getProperty("socket-port"));

        }
//        BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
    }


    @Override
   public void onCommand(Command c) throws IOException, UnableToExecuteException {
      ElectricDevice dev = getDevice(c);
      connect(c); // called here to interact with arduino
      String message = createMessage(c);
      try {
            outStream.writeBytes(message);
            outStream.flush();
            outStream.close();
            //in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            //String response = in.readLine();
            //System.out.println("Device answer:"+response+"\n");
            //in.close();
            //socket.close();
          } catch (Exception ex) {
            System.err.println("Unable to write " + message + " " + socket.toString()
                    + ". Maybe the device is not connected.");
        }
      try {
            inStream = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            System.out.print("Received string: '");

            while (!inStream.ready()) {}
            System.out.println(inStream.readLine()); // Read one line and output it

            System.out.print("'\n");
            inStream.close();
          } catch(Exception e) {
                     //System.out.print("It didn't work!\n");
                     System.out.print(e);
               }
      socket.close();

     }

   // create message to send to Arduino
   public String createMessage(Command c) {
     String message=null;
        message="GET /" + c.getProperty("code") + " HTTP 1.0\r\n\r\n";
        return(message);
       }

    private ElectricDevice getDevice(Command c) {
        //getting a safe reference to the targer object if exist
        ElectricDevice dev = null;
        try {
            dev = c.getTargetObject(ElectricDevice.class);
        } catch (NoObjectFoundException ex) {
            System.err.println("Undefined target object '" + c.getProperty("object") + "' in command '" + c.getName() + "'");
        } catch (ClassCastException classEx) {
            System.err.println("Attempt to handle an '" + c.getProperty("object") + "' as an 'ElectricDevice' -> " + classEx.getLocalizedMessage());
        }
        return dev;
    }


    /*
     * used only to update the state of the object in Freedom
     */
    protected void setTargetObjectBehavior(Command c) {
        ElectricDevice dev = getDevice(c);

        //getting the behavior to apply
        String state = c.getBehavior();

        try {
            if (state.equalsIgnoreCase("on")) {
                dev.switchOn(c.getProperties());
            }
            if (state.equalsIgnoreCase("off")) {
                dev.switchOff(c.getProperties());
            }
            if (state.equalsIgnoreCase("dim")) {
                Light light = (Light) dev;
                light.dim(c.getProperties());
            }
        } catch (Exception e) {
            System.err.println("Unable to change behavior");
        }
    }

    public void onDataAvailable(String data) {
        //do nothing
    }

    public boolean canExecute(Command c) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
Pages: 1 ... 3 4 [5] 6