Show Posts
Pages: [1] 2 3 ... 5
1  Products / Arduino Yún / Re: Use Yun bridge without a Yun? on: October 16, 2013, 01:39:52 am
Technically it is possible to do it, but practically you might face some problems.

Also, it would be easier to try with Arduino Leonardo first instead of Uno, since the AVR part in YUN is more similar to Leonardo than Uno.
2  Products / Arduino Yún / Re: How does the Arduino Bridge library works internally? on: October 09, 2013, 05:33:34 am
The in memory storage is listening on port 5700

Thanks.

I guess, I will be able to figure out rest by looking into the code.
3  Products / Arduino Yún / Re: Bridge library on different Arduino board on: October 09, 2013, 05:31:29 am
Technically yes, but practically you might face some problems and might have to do lot of reverse engineering, since the internal working of the Bridge library is not documented anywhere.

I would suggest you to keep one part constant and then vary the other part. (ie) either vary the Arduino board or the linux board. The AVR micro controller used in YUN is the same as the one in Leonardo. So I would suggest you to try with Leonardo + linux board (RPi or BeagleBoard), instead of varying both.

I am personally trying this right now (Arduino Leonardo + Raspberry Pi). I am currently going over the Bridge code to figure out the internals of the library, so that I can port it. Will post an update if I succeed.

Meanwhile, try it yourself as well and do let me know if you manage to get anywhere.



4  Products / Arduino Yún / Re: How does the Arduino Bridge library works internally? on: October 09, 2013, 04:47:27 am
Thanks for the pointers. I will use them as basics and will try to get more details by reading the code.

When I was going through the bridge library code, I also found that there is some process which is running in port 5700. Can you kindly shed some light on what this process does?

Thank you.

PS: I know that the library is still in its initial stages, but it would be really nice if the internals is documented, so that it will be easy for 3rd party developers and library creators.
5  Products / Arduino Yún / Re: How does the Arduino Bridge library works internally? on: October 08, 2013, 11:41:19 am
I found this blog helpful for understanding the bridge: http://jpmens.net/2013/09/23/understanding-arduino-yun-s-bridge/ .

Thanks for the link. It touches on some of the high level stuff about Bridge library and is a good start.

But it would be nice if there is some more in-depth documentation about how the interface happens between AVR and Python code.
6  Products / Arduino Yún / How does the Arduino Bridge library works internally? on: October 08, 2013, 01:30:45 am
I have seen lot of links and all of them mention "how to use" the Bridge library, but doesn't explain "how it works".

So far my understanding is that, both AVR ATmega32u4 and Atheros AR9331, communicate with each other through serial connection. The AVR part of Bridge library communicates with Python code running inside linino through serial. Apart from it, I couldn't get anything else from the Bridge library example pages.

I know that I can read the source (which I am anyway doing), but it will be really nice if someone can kindly briefly explain (or point me to some link that explains) how the AVR and Python code communicate to each other internally. Also does the Python code listens to any port for web requests?

Thanks.
7  Community / Website and Forum / Re: new web site presentation issues on: October 07, 2013, 03:41:32 am
Also kindly increase the word spacing for headings.

Long headings look really bad now. Check first attachment.

If you fix the word spacing, then it will look like this. Check second attachment
8  Using Arduino / Networking, Protocols, and Devices / Re: Reading data sent by slave device in master using I2C on: June 22, 2013, 10:55:49 am
Yeah I know about Wire.available() and Wire.read()

But what I meant in my question is that, I want to read the data in master that was just send by slave in response to a command that was sent by master.

I want to do something like this

Master sends command 1
Slave responds back with answer to command 1

.. after sometime

Master sends command 2
Slave responds back with answer to command 2

It is very difficult to emulate this behavior using Wire.available() and Wire.read()

What I want is a callback in master (similar to onReceive in slave). Is it something that is possible to do using the Wire library?
9  Using Arduino / Networking, Protocols, and Devices / Re: Library GSM vs SoftwareSerial on: June 22, 2013, 09:58:28 am
I guess this is because both the shields are using SPI.

Follow this guide, which explains how you can route multiple shields that use SPI and see if you can make similar modifications. http://www.circuitsathome.com/mcu/running-multiple-slave-devices-on-arduino-spi-bus-hardware-modifications
10  Using Arduino / Networking, Protocols, and Devices / Reading data sent by slave device in master using I2C on: June 22, 2013, 09:44:55 am
I am in the process of designing a project, where two Arduino's will be talking to each other through I2C. One Arduino will act as a master and the other one will act as a slave.

I want the master to send specific commands to slave and I want the slave to respond to these commands. In short I want to have a I2C slave similar to I2C Digital Potentiometer.

I am trying to implement it using the built-in Wire library, but couldn't.

From the master, I am initiating the command by using the following code

Code:
   Wire.beginTransmission(4); // transmit to device #4
    Wire.write(0x01);              // sends one byte  
    Wire.endTransmission();

and in the slave I have the following code

Code:
void receiveEvent(int numBytes)
{
    byte received = Wire.read();
    if (received == 0x01) {
        Wire.write(received);
    } else {
        Wire.write(2);
    }
}

void setup() {  
    Wire.begin(4);
    Wire.onReceive(receiveEvent);
}

The slave receives the command from the master and is able to write the correct value. But I am not able to read the value back in master.

I tried to use a onReceive handler in master. But I found that onReceive can't be used in master. Apart from it I was not able to find a way to read this data from slave in master.

My so my question is how can we read the data that was sent by slave to master in response to a data that was sent by master?
11  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Mega 2560 + Sparkfun USB HostShield + Oleg's Code on: May 01, 2013, 09:24:19 am
Which version of Sparkfun's USB Host Shield are you using and which version of Oleg's library you are using?

Check out my post, which explains the different configurations - http://hardwarefun.com/tutorials/using-usb-host-shield-with-arduino

Also did you try it Arduino Uno instead of Mega?
12  Using Arduino / Networking, Protocols, and Devices / Re: Sparkfun USB Host Shield working with oleg USB Host Shield 2.0 on: January 26, 2013, 05:00:54 am
The test still fails with the same error   Value written: 01 read: 00.

Is this the loopback test? If yes then you can skip it.

Also the library is not *officially* compatible with the Sparkfun shield.
13  Using Arduino / Networking, Protocols, and Devices / Re: Sparkfun USB Host Shield working with oleg USB Host Shield 2.0 on: January 16, 2013, 11:07:58 am
On the back it says 5-28-10.

It is the updated one. You can find the product page at https://www.sparkfun.com/products/9628 and this is the image https://dlnmh9ip6v2uc.cloudfront.net/images/products/9/9/4/7/09947-03b.jpg

I soldered the headers myself. It's my first time soldering so I don't know if the connections are good or if I burnt some lines printed on the PCB.

Well checkout for any dry solder. I had a dry solder when I first tried a host shield.

I did not try adding an external power source. How do I do that?

Power up Arduino using an external power supply.
14  Using Arduino / Networking, Protocols, and Devices / Re: Sparkfun USB Host Shield working with oleg USB Host Shield 2.0 on: January 14, 2013, 09:42:58 am
Can you post a picture?

Also was there any model number of something written anywhere in the package on in the PCB?

Also did you try adding an external power source?
15  Community / Exhibition / Gallery / Controlling USB Missile Launchers with Arduino on: November 10, 2012, 01:19:32 am
I had an old USB Missile Launcher lying around and after some decoding and reverse engineering, I finally managed to control it using Arduino and USB Host Shield.

Here is the video of it working



Explanation/blog: http://hardwarefun.com/tutorials/controlling-usb-missile-launchers-using-arduino
Arduino Library: http://hardwarefun.com/projects/missile-launcher
Source code: https://github.com/sudar/MissileLauncher

Have a look at it and let me know if you have feedback/suggestions
Pages: [1] 2 3 ... 5