Show Posts
Pages: 1 ... 5 6 [7] 8 9 ... 16
91  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: April 12, 2013, 08:05:01 am
Here is a link to the files ->
https://docs.google.com/file/d/0B_PfPoEotOF8WEwyUVhkWnY3b00/edit?usp=drive_web&pli=1

or try this if it doesn't work
https://drive.google.com/folderview?id=0B_PfPoEotOF8N2JwT3RSX011SjQ&usp=sharing

92  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: April 11, 2013, 11:09:41 pm
You have to copy and paste arduino code into arduino IDE and then upload it to the board

You're right about speedyshare - you can no longer download the files for free
I'll try to upload them somewhere else
93  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: April 11, 2013, 12:51:18 pm
I don't really understand the question... could you be more specific ? I know English is probably not your native language but I can't really tell what's the problem
94  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: April 02, 2013, 01:57:41 pm
The app doesn't have to pair with the module - just pair with it from the phone and then run the app

It should work just fine - just make sure you check the datasheet of the module & make sure the baud rate is the same (if so then the arduino code has to be modified or the setting of the module)
95  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: March 27, 2013, 01:01:27 am
ohh I see now... the problem you are experiencing is caused by data types

The app sends bytes so it converts '1' into '49' and that's what's sent through bluetooth.


Ohh and you really should have connected the app to the bluetooth dongle - that would make everything clear for you.
96  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: March 25, 2013, 08:33:05 am
Quote
Where did you initialise serial data speed on Bluetooth device?
Cyclegadget is right - it's either when pairing or whenever connection is established

Even if baud rate was wrong you'd still receive something - if you don't then it has to be something else.


Verify if the module and the mobile works using a USB bluetooth dongle and a program like putty. Also check the datasheet of the module and the settings - is the module set as slave or master ? For apps I created it has to be set as master
97  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: March 20, 2013, 10:29:40 am
The module I got has a proper level shifter on it, but AFAIK one could improvise with zener diodes to achieve the same effect (not that level shifters are very expensive)
98  Community / Exhibition / Gallery / New functionality on: March 10, 2013, 02:13:46 pm
I found out how to send data from the app to cosm website

here is a video showing an example app as well as a brief explanation of how to use app inventor



You can download the app here >>
<a href="http://speedy.sh/d4444/bluetoothAppCosmExampleTemperature1.apk">Download at SpeedyShare</a>

Here you can download the source >>
http://speedy.sh/Vwwww/bluetoothAppCosmExampleTemperature.zip


Here is arduino code I used (note that you need OneWire library for it to work)
Code:
#include <OneWire.h>
int DS18S20_Pin = 2; //DS18S20 Signal pin on digital 2

//Temperature chip i/o
OneWire ds(DS18S20_Pin); // on digital pin 2



void setup()
{
  // initialize the serial communication:
  Serial.begin(19200);
  // initialize the ledPin as an output:

}

void loop() {


   float temperature = getTemp();
Serial.println(temperature); delay (250);

}


float getTemp(){
//returns the temperature from one DS18S20 in DEG Celsius

byte data[12];
byte addr[8];

if ( !ds.search(addr)) {
//no more sensors on chain, reset search
ds.reset_search();
return -100;
}

if ( OneWire::crc8( addr, 7) != addr[7]) {
Serial.println("CRC is not valid!");
return -1000;
}

if ( addr[0] != 0x10 && addr[0] != 0x28) {
Serial.print("Device is not recognized");
return -1000;
}

ds.reset();
ds.select(addr);
ds.write(0x44,1); // start conversion, with parasite power on at the end

byte present = ds.reset();
ds.select(addr);
ds.write(0xBE); // Read Scratchpad


for (int i = 0; i < 9; i++) {
data[i] = ds.read();
}

ds.reset_search();

byte MSB = data[1];
byte LSB = data[0];

float tempRead = ((MSB << 8) | LSB);
float TemperatureSum = tempRead / 16;

return TemperatureSum;}
  
  


And here is the feed I created for the app -> The feed is available here - https://cosm.com/feeds/118188


In order to send data from or to your own COSM feed you have to modify the URL as follows (parts that you have to fill in are in capital letters):

http://api.cosm.com/v2/feeds/YOUR FEED ID/datastreams/YOUR DATASTREAM ID.csv?key=YOUR API KEY&_method=put

Then copy and paste the URL into a QR code generator, generate a QR code and scan it using the app. You might as well use the feed I created for the app - it's the default URL set in the app so you don't have to enter it - it's already there



If you have any questions feel free to ask them


99  Using Arduino / Interfacing w/ Software on the Computer / Re: Cosm and MIT's app inventor on: March 07, 2013, 04:27:04 pm
hate to respond to my own posts but I got it to work

strange I am sure I was doing exactly the same thing before

Just this URL
http://api.cosm.com/v2/feeds/XXXXXXXXXXX/datastreams/1.csv?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&_method=put

then POSTing text string

and it works, though I didn't work before  smiley-confuse

lol I guess I was too tired or something


anyway, expect an example app that allows two way communication (COSM <=> ANDROID APP <=> ARDUINO) soon  smiley-cool
100  Using Arduino / Interfacing w/ Software on the Computer / Cosm and MIT's app inventor on: March 06, 2013, 12:47:38 pm
Hi,
I am trying to use Cosm with apps created using MIT's app inventor (basically enabling web for this -> http://arduino.cc/forum/index.php/topic,148853.0.html)

I do receive data - ie GET requests work fine, but I can't work out how to PUT data. The problem is that MIT's app inventor only allows to methods - get or post

I tried adding '&?_method=post' to the URL but that doesn't work - I get a 403


Oh and since I can actually GET data from Cosm one way communication is possible - if you want to I might as well post an example app
101  Using Arduino / Motors, Mechanics, and Power / Long range PTZ turret on: March 03, 2013, 07:32:02 pm
What would give better accuracy for a long range pan tilt turret (accuracy in mRadians) ?

A)this geared step motor 28BYJ-48 – 5V ( http://robocraft.ru/files/datasheet/28BYJ-48.pdf )
or
B)a geared DC motor like SG-27 6V DC ( http://www.sgmada.com/zl/pdf/SG27125000.pdf )

I would prefer to use just one belt drive transmission for simplicity sake. Ohh and before you ask - controlling either of them isn't a problem for me. Also I am aware that I'd have to add position sensing. I don't plan to mount more than 1 or 2 kg on it

Personally, I find the step motor better as it should (at least theoretically) be more predictable - whereas the RPM of the DC motor would be rather unpredictable - geared motors require more current when they start up, don't they? That would probably make things a little bit more complicated as current to RPM would be as predictable as I'd like to.

Has anyone of you got experience with similar systems or know how commercial products are built?
102  Using Arduino / Sensors / Re: IR receiver based distance sensor on: March 02, 2013, 03:36:30 am
Thx that was really helpful
103  Using Arduino / Sensors / Re: IR receiver based distance sensor on: March 01, 2013, 08:31:14 am
thx but I already have an HC-SR4. I know there are IR based proximity sensors but they have limited range and are very expensive. I have experimented with IR before and I know the range is much greater - it would be cool if I could come up with a cheap IR sensor.
104  Using Arduino / Sensors / Re: IR receiver based distance sensor on: February 28, 2013, 06:21:51 pm
Turns out a couple of turns of sticky tape isn't enough to block IR beam. Replaced with something more substantial and it kind of works  smiley-roll-sweat

I say kind of as it senses objects but not very consistently. I am sure it's not only because some objects reflect IR better than others - it's more complex...


When object is sensed let's say 60 cm from the sensor the sensor keeps sensing it even when I move it 100 cm away from it. But if I move any further and the sensor stop receiving the beam I have to move the object back to 60cm distance from the sensor for it to start sensing it again

It seems the IR receiver circuitry kind of adapts or something... I guess that's caused by the circuitry inside the IR receiver. The code I use doesn't work properly - don't know why... 38khz frequency suggests 26us period, right ? Well I thought I had it wrong (since it was 26us ON and 26us OFF) that but I changed it to 13us ON and 13us OFF and the result is the same.

If I use the IRlibrary to generate 38khz frequency on the LED the range drops to like 30 cm max but it is consistent

What's even better - I get about 3-4 meter sensing range if I use a remote control as the IR source

So uhmm now I am kind of lost  smiley
105  Community / Exhibition / Gallery / Re: Using android mobile to control arduino on: February 28, 2013, 05:49:51 pm
Oh sorry I forgot to post wiring diagrams here. Now it should be a lot easier to understand.




If you can't see the pics just go here -> http://www.instructables.com/id/How-control-arduino-board-using-an-android-phone-a/

Pages: 1 ... 5 6 [7] 8 9 ... 16