Hi there
I tried connecting my arduino to the pi using sample code from arduino.org. however, after going through the tutorials below, i could not get the pi to detect the arduino. So i decided to try with a simple accelerometer (mma7660), yet i still can't get anything to be detected. any changes from the B to the B+? all pins the same etc? I bought the pi 3 days ago so i am as big a begginer to pi's as can be, but not so much to programming and electronics.
ive been into raspi-config, enabled i2c and spi, used i2cdetect -y 1 and nothing comes up with either the arduino or the accelerometer. As i said, i followed the tutorials and changed the last few lines in the config.txt file. what else is needed?
i've also managed to get an error message which hopefully someone will understand. I followed the radiostud i2c tutorial where an arduino uno is configured as a slave device, and you send data from the pi to the arduino via i2c
i get all the way to the final part of sending data, but when i click enter, the following error message shows up
many thanks
Ross
Related
Hey all,
I was wondering if it is possible to communicate with an Arduino with a Tilt through the Tilt's USB port? I've just gotten into device application development and I had a cool idea I was wanting to make but the biggest hurdle is how to communicate between the Arduino microcontroller and the Tilt.
For those that don't know what an Arduino is (I feel sorry for you ), it is a microcontroller platform based off of the AVR Atmel168 processor. The version I've got on hand right now is a Seeeduino that has a mini-USB port on-board communicating to the Atmel168 through an FTDI USB-Serial chip (shows up as a serial port when plugged into the computer). It would be great if the Arduino showed up as a new serial port on the phone when plugged in, but I doubt it will be that easy. Does anyone know if the Tilt/Kaiser USB port can host other devices?
If anyone has a suggestion or has tried something like this, please comment. Or if I'm just crazy for thinking the phone can do this, tell me so.
Thanks all!
-Jeremy
USB drivers
Im not sure how much this could help, but it may get you off to a good start http://forum.xda-developers.com/showthread.php?t=480899
i noticed it said serial port in there somewhere, so i hope it helps!
You can have a try with the drivers mentioned above. If this fails, hook a Bluetooth module to your Arduino and forget about wires
When I was waiting for a haircut today, I was fiddling in the task manager and looked at the devices tab. Just thought I'd run these by you all:
Com 8: serialusbfn.dll (\Drivers\USB\FunctionDrivers\Serial_Class)
Com 9: Serial_UART.dll (Drivers\BuiltIn\SERIAL_UART3)
I haved searched around or messed with these yet but what in the world could com 8 be being used for right now?
-Jeremy
P.S. I did see that link and that will be the next thing I'll try, Thanks!
AFAIK there are some internal peripherals that are connected to the main processor through serial ports. That might be those.
Use I2C - you can get at it through the DS2746... when looking at the PCB on the side with all of the metal-enclosed areas, it's on the left, and towards the bottom (IIRC)... should be able to run 4 wires (get a ribbon cable) out the bottom (into the battery compartment)...
I've been considering this seriously... I2C is a damn useful bus, and it's underused in this device (only battery chip, touch screen, and camera control, AFAIK)....
The bus itself is two wires - SDA (data) and SCL (clock), and you'll also need +5v and ground.
Would be nice to hook up a spare ds1621 (you can get these as free samples) or a compass/accelerometer chip
It would be very cool if I could manipulate my Nexus One usb port's signal to 5V and 0V from an app directly. It would allow controlling simple motors without any usb protocol.
I think the lowest possible level of usb access in the android source code are these lines (IUsbManager.java):
Code:
private static final java.lang.String DESCRIPTOR = "android.hardware.usb.IUsbManager";
<...>
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
You can find that here: bit.ly/IlUzV0
So I'm sure you have to go deeper than that. I'm asking for any guidance towards developing this. How do I go about exploring the kernel code? Can I even do that?
You can explore kernel code, but I'm not sure you have access to USB stack other than in pre-compiled .so form. You'll need to substitute the USB stack and control the signals directly through capabilities of USB Link (peripheral). Theoretically it's possible, practically - unless you're an experienced SW/HW engineer, have the QSD8x50 manual in possession and are able to write a kernel-space driver that will be able to go "under the stack" (much like USB driver of various Virtual Machines on Windows, namely VMWare) - I don't think so.
hi, I am new towards hardware. I am a computer programmer with some knowledge of electronics.
I have connected ADXL335(Accelero) with raspberry pi. ADXL335 gives analog output so somehow i have learned i need to use ADC. I bought an ADC0831CCN but cant understand the pin configuration and how to use it to get values on raspberry pi.
Can any one please help.
Thank you
saqibvohra93 said:
hi, I am new towards hardware. I am a computer programmer with some knowledge of electronics.
I have connected ADXL335(Accelero) with raspberry pi. ADXL335 gives analog output so somehow i have learned i need to use ADC. I bought an ADC0831CCN but cant understand the pin configuration and how to use it to get values on raspberry pi.
Can any one please help.
Thank you
Click to expand...
Click to collapse
Did you read the datasheet?
Hello guys!
I have a raspberry PI 3 (model b) with all necessary accessories and different sensors such as (DHT11, BMP 180, MQ-2 etc.)
So far I have managed to install Raspbian OS and log-in to PI using Putty via Wi-Fi (as I don't have external screen)
1. Is it possible to connect many sensors let's say about 3 to 5 to a single breadboard connected with raspberry PI 3?
2. Once the sensors are added successfully is it possible to collect and send data to the android app? Let's say if I create a very simple looking android app and then I can see the temperature directly from the sensor on phone?
I know there are different IoT platforms that allow sharing data in the cloud, but I want to build everything from scratch.
I am a beginner on this, so I am still studying and reading but would appreciate if someone could give me some guidance where to start.
Regards
you can use and adruino and a bluetooth module to connect it to a raspberry pi and build an app to receive and display the data from the sensors. building one myself for a project.
U can do something like this with raspberry pi + arduino
https://github.com/Ayush1325/SmartHomeModel
Raspberry pi and arduino are connected via a simple serial usb cable that comes with arduino.
It uses PubNub as the server and arduino and Android phone are connected to internet.
why not just RDP or use JuiceSSH for viewing remotely
Hi All,
I'm not overly experienced with my pi but looking for some support and hopefully will get better with more use.
I have a Raspberry Pi 3 with Raspberry Pi OS (64 bit), freshly flashed a couple weeks ago. It is running headless, with a wired ethernet connection.
I have installed Portainer and Docker with three different containers. (qBittorrent, Gluten, Zwave2mqtt)
There is a an Aeotec Zwave USB stick installed.
The pi becomes unresponsive every day or every other day. No ability to SSH in.
Historically, the pi worked fine with a similar (though not exact) setup, including the USB stick. This was with the 32bit version of the OS, not using portainer and only the Zwave2mqtt as a docker image.
Would be glad to get log files, but I haven't been able to figure out which log files I need to pull to help diagnose this problem. Where do I start with this kind of troubleshooting?
Thanks!