Show Posts
Pages: [1] 2 3 ... 60
1  Products / Arduino Yún / Re: Sketch compiling get lost on: April 03, 2014, 06:44:12 am
The code I made simply run a script in Linino to start a BLE service.
BLE as in BluetoothLowEnergy??

What does the script /root/ble look like?

2  Products / Arduino Yún / Re: Serial1 was not declared when compiling YunSerialTerminal on: April 02, 2014, 03:02:14 am
Since this code only runs on the arduino Yun, you have to compile for the Yun.

Your compiler output shows you selected the "Arduino Uno" board.

3  Products / Arduino Yún / Re: Tty for serial port to Arduino from Linino on: March 27, 2014, 03:58:14 am

Has anyone looked into using GPIO 19 on the Linino/MIPS processor, which appears in the schematic to be connected to ATmega INT6/AIN0/PE6 pin, as a means of signaling between the two processors? 
Here is some basic code and documentation concerning the use of GPIO 19 as a kind of linux boot monitor.

4  Products / Arduino Yún / Re: Restarting Sketch on 32U4 from Linino on: March 21, 2014, 09:48:11 am
Is there a way to restart the Arduino sketch from Linino?

There is a litte bash-script  /usr/bin/reset-mcu
You can call it from the commandline or from a script that runs at startup.
I guess the original use case for the script is to reset the Arduino before uploading a new sketch.


5  International / Deutsch / Re: Sound Sensor selberbauen / oder Kaufen on: March 13, 2014, 05:59:10 am

wenn du Bilder von platzenden Ballons machen möchtest würde ich eher das "Ereignis" überwachen, das den Ballon zum platzen bringt. Wenn  der Schall dein Mikrofon erreicht ist es ja eigentlich schon zu spät. der Ballon ist ja schon geplatzt.

Mit eine Lichtschranke die z.B. von der Bewegung einer Nadel ausgelöst wird, die dann letztendlich den Ballon zerstört ist ein genaueres arbeiten möglich. Inbesondere ist man auch immer von der verwendeten Kamera  abhängig (Verzögerung  der Auslösung).

Auch wenn der Arduino prinzipiell dafür geeignet ist solche Fotos zu machen, einfacher und (evtl. billiger) geht es wahrscheinlich mit einem fertigen Fernauslöser für deine Kamera.

Ich will hier keine Werbung sein, aber hier findet man eine ordentliche Auswahl :


6  Products / Arduino Yún / Re: Building the Yun image - Alpine fails on: October 24, 2013, 11:52:26 am
If any kind soul who understands the entire build process would care to enlighten me about how the packages that are finally selected for the Yun image are specified, that would be great  smiley

Basic steps are explained in the FAQ
7  Products / Arduino Yún / Re: WebSockets with Yun? on: October 24, 2013, 11:49:00 am
Doesn't this sound like what Spacebrew does?
I don't know much about what spacebrew does.
With the outline for the pywebsocket code, a typical application would be :
  • You run the  WebSocket server on the Yun
  • You open a html page with your browser, that brings in the javascript code to open,read and write to the websocket
  • Some code that is run on the server handles the communication with the Arduino.
  • Your browser window gets updated by some javascript code that interprets the data returned from the Yun
Spacebrew seems to add a lot of extra stuff to this basic layout for an app.
Running a Spacebrew server depends on Node.js which is not available as a package for the Yun AFAIK.

But ...already mentioned ... I didn't look into Spacebrew that much...

8  Products / Arduino Yún / Re: WebSockets with Yun? on: October 24, 2013, 10:00:56 am
And how would my data from the Arduino sketch get pasted to the WebSockets server?
I would like to have an event handler in my sketch, put some data as a result, and get it past as JSON to my clients JavaScript.

There is a forum post which collects some ideas to communicate with a Sketch running on the ATMega from python code running on the linux machine.

The idead would be to send your JSON data  from the sketch to the python code over Serial1. Then the python code forwards the data to your Websocket-Client.

9  Products / Arduino Yún / Re: WebSockets with Yun? on: October 24, 2013, 08:59:11 am
The echo example for pywebsockets works on the Yun.

Tested it like this:
It looks like the library does not have any external requirements in standalone mode. If performance is not the major concern pywebsocket looks like a good starting point.

10  Products / Arduino Yún / Re: WebSockets with Yun? on: October 24, 2013, 03:46:14 am
If I get it right from the Spacebrew docu, it uses the serial port to communicate with the python scripts on the Linino site and transfers the data to their cloud hub.
The spacebrew code implements a websocket client. For the Yun a websocket server would be a great addition.
I looked at some python implementations but most of them use the gevent package which is not available for OpenWRT.

PyWebsocket might work, looks like they do not use any native code that needs to be cross-compiled.
11  Products / Arduino Yún / Re: Start up to Arduino yun on: October 23, 2013, 06:00:45 am

                   Does i required to get the IP address of the board? If so means how can i get it.
                    can you help me to install from the starting?

please help me friends i need it very badly.
I started with this Article here
It should answer all your questions about the configuration of the Yun.

I also don't know why people make videos about topics which are much easier to explain and comprehend  in written form or from a  static webpage.
12  Products / Arduino Yún / Re: Tty for serial port to Arduino from Linino on: October 17, 2013, 05:06:40 am
I had a little accident in my workshop, so I will not be able to do any serious work with my yun, but I took some time to read the whole documentation that is available, and there might be a nice way to signal the atmega when the linux machine is available. The original Yun docs mention a heartbeat line from the mips-processor (GPIO 19) to the arduino Pin 7.

I should be possible to write a Linux Init-script that switches this handshake to a certain state when the Linux part is fully booted and the Console is free to use for an application. The same is possible for situations where the Linux part is shutting down or in a Reboot.

An Arduino Sketch would simply have to monitor Pin 7 and thereby knows when serial IO with som Python code is possible.
One-handed typing is a bit arkward, so here are just the references:
in both document search for "handshake"
13  Products / Arduino Yún / Re: Tty for serial port to Arduino from Linino on: October 10, 2013, 01:11:15 pm
there is a serious problem with my little echo sketch on the ATmega.

The changes in /etc/inittab detach the serial line to the ATmega, but this happens very late in the boot process.
Until just before the login prompt for the shell is shown, all kernel messages are still forwarded to the ATmega.
Because my test sketch more or less echos what is read from the serial, the  boot process seems to be stopped by the random data coming back over Serial1.
The effect is that because of the echo sketch the WiFi setup never completes. Login over ssh is not possible.

When the simple Blink Sketch or even the Yún Serial Terminal runs on the ATmega the Yun boots fine because these Sketches don't throw any random data back at the linux machine. If you are stuck like that because you tried the test at home, simply upload a Sketch not writing to Serial1.

For an application using the Serial1 to communicate with the ATMega this means, you are only allowed to listen on the Serial1 until the Linux machine was sucessfully booted.
14  Products / Arduino Yún / Re: Tty for serial port to Arduino from Linino on: October 10, 2013, 11:33:25 am
The Arduino UART should definitely do 250000 , and higher. And since the hard-wired serial connection is very short, there shouldn't be any signal degradation issues.
Maybe you have a marginal board. I will give it a go tonight and let you know results. If necessary we can look at the UART registers for over-run or parity errors....
I tried everything to create a bad environment for the Yun to provoke an error at 115200 baud...
- Wind an active Lan-cable several times round the Yun
- Place the Yun on to of my cellphone, and call myself
...but the python script runs without problems

Raise the speed to 250000 and it fails .

Sketch programming from the Yun side (not over USB) does not use the serial port. It uses the avrdude -c linuxgpio option which emulates a SPI programmer. See file /etc/avrdude.conf line 976
15  Products / Arduino Yún / Re: Tty for serial port to Arduino from Linino on: October 10, 2013, 10:45:34 am
Hi Wayoda,
   when you say a BAUD rate of 250000 fails - do you get characters from Serial, or nothing at all?

The python script writes 32 chars to the ATmega and then reads 32 bytes with a five second timeout.
When used with baudrates above 115200 the read returns unexpected characters and also too few of them.
Pages: [1] 2 3 ... 60