sensor

Educational usages of acceleration sensors

Hello! I'm working in a higher school in Austria and I'm currently evaluation how acceleration sensors can be used to deepen fundamental understandings (physics, mathematics, electronics, software engineering, project management, user interface [iPhone]...) and achive better motivation of the students (for example by giving a far milest...

iPhone Proximity Sensor

Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses. For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-estate with your thumb. Of course though, if this was your only ...

toggling proximity sensor on iPhone loses an event

I'm using setProximitySensingEnabled and implemented proximityStateChanged in my UIApplication subclass. It looks like if sensing is toggled, that the first "off" event is being lost. My UIApplication class is pretty basic... -(void)proximityStateChanged:(BOOL)state { NSLog(state ? @"ON" : @"OFF"); } In my application delegate, I ...

Can one access the Windows 7 Sensor and Location platform from Silverlight?

Is it possible to access the Windows 7 Sensor and Location platform from Silverlight? In particular I would like to know about the location data (GPS) and the ambient light sensor. Edit: I would assume that the way to do this would be with C# in the code behind file. ...

How do I find out if the GPS of an Android device is enabled

On an Android Cupake (1.5) enabled device, how do I check and activate the GPS? ...

How to Build a Sensor Simulator for Android?

Hello, I am building a application for the Android platform and I would like to use the accelerometer. Now, I have found a very nice application for sensor simulation (OpenIntents' SensorSimulator) but, for what I want to do, a would like to create my own sensor simulator application. I have not found information on how to do this (I d...

iPhone Temperature Sensor

My question is very similar to this one: iPhone Proximity Sensor. There's clearly some manner of thermometer within the iPhone that's readable by the OS. Has anyone uncovered the super-secret undocumented APIs to read this sensor? ...

How to determine absolute orientation

I have a xyz accelerometer and magnetometer. Now I want to determine the orientation of the device using both. The problem I see is that depending on the device orientation, I'd need to use the sensors in different order. Let me give an example. If I have the device facing me then changes in both the roll and pitch can be determined wit...

Basic doubt about sensor usage

Suppose I have a cellphone with accelerometer and magnetometer, and want to determine its absolute (wrt North/East/South/West) 3d position. Imagine the phone is laid vertically, with the screen facing me, the "up" vector pointing to the ceil. Whenever I tilt, the accelerometer allows me to get the "up" vector info change. The problem is...

Does iPhone allow Light sensors as input?

Hi, I was just wondering whether iPhone developement allows light sensors to be used, as buttons or action elements?? I found this link online... Possible to use Light Sensor as a Button? [Archive] - Touch Arcade If anyone could shed some light on the issue, I'd appreciate the help? Cheers. Divanshu. ...

How to enable sensor simulator in android??

Intent intent = new Intent(Intent.ACTION_VIEW, Hardware.Preferences.CONTENT_URI); startActivity(intent); when i give the above code to enable sensors....they are showing errors....@ Hardware.Preferences.CONTENT_URI);...saying create a class Hardware...plz help...i'm a beginner in android... ...

Getting live data from the iPhone on the Mac

Hi, I'm experimenting with the sensors of the iPhone. At the moment I visualize the data of the accelerometer by logging it to a file, downloading the file via Xcode and loading the file into my Ruby-Processing app. As I'm playing around a lot this process is getting annoying. It would be cool to have a live stream of the data on the Mac...

Calculating Length Based on Sensor Data

I've got an IR sensor which writes its current information to a token which I then interpret in a C# application. That's all good -- no problems there, heres my code: SetLabelText(tokens [1],label_sensorValue); sensorreading = Int32.Parse(tokens[0]); sensordistance = (mathfunctionhere); Great. So the further away the IR sensor is from...

How to Get Ambient Temp from Arduino Lilypad Temperature Sensor

I am connecting a LilyPad Temperature sensor to a LilyPad Arduino 328 Main Board with the goal of reading fairly accurate ambient temperature readings. The sensor is receiving power and giving a responses I'm able to read over serial. The problem I am confronted with is that reading from the sensor is giving me very unusual - although ...

android SensorEventListener problem

Hi, I am trying to create an application which reads data from digital compass. I tried to reuse the code from the book Professional Android Application Development but the IDE displayed a note The type SensorListener is deprecated I guess it is because the code from the book is written for the earlier SDK version so I tried to us...

How do I use the Google Maps API GPS sensor?

All I've been able to find is how to specify the sensor parameter: http://code.google.com/apis/maps/documentation/v3/#SpecifyingSensor But nowhere does it say how to actually USE it. Isn't the whole point to be able to get the user's current lat/long coordinates through the device GPS, or am I mistaken? ...

IWDFDevice::CreateWdfFile returns ERROR_INVALID_FUNCTION?

Hi, I am writing a UMDF sensor driver for a device that connects to the system via Bluetooth and is accessible as an HID input device. I saw the "Sensor Development Kit" sample driver and noticed that it works with the Freescale hardware via HID also though it connects to the system via USB. Is there any difference in the way the UMDF...

Android: get current sensor state

Yes, I can get sensor update events with SensorEventListener. But this approach has 2 drwwbacks: 1) For some sensors I have to wait for the state to update. For example, temperature may update after a minute! 2) In some cases I can get incorrect readings. For example, the phone lies on a flat surface and does not move. I receive first ...

How to get light sensor value and battery level anytime for android?

I am writing a program and I am able to get the light sensor value and current battery level, but only the light value changes and when the battery level changes. Is there a way to get these two values anytime? Like when a user runs my program, I would like to grab the current values right away instead of having to wait for them to cha...

C++ for Wireless Sensor Networks

Similar to: Why are RTOS only coded in C, but: Besides the numerous myths about C++, why is it not used as much as C/nesC (TinyOS) for WSN? Knowing C++ can be used for Simulating Wireless Sensor Networks with OMNeT++ it is hard not to think that it can also be used in real-time embedded systems as C is to accomplish event handling. I ...