Go Down

Topic: Serial Help (Read 300 times) previous topic - next topic

dwd002

So I have been working on a project that requires both an Arduino and a Raspberry Pi.  Arduino for real-time adjustments, Raspberry Pi for video streaming and connecting to a server were it will get commands.  My issue has been trying to have the Raspberry Pi communicate to the Arduino over Serial.  In a perfect world I would have used USB to USB and it would have worked but my Raspberry Pi wont recognize it unless it is on a powered USB hub so I am beginning to think power is my issue.  I attached a rough diagram to the post.  It goes Battery(11.1v) -> Arduino & 5 Volt Regulator.  The Regulator feeds power to the raspberry pi.  Then a USB cable goes between the Arduino and raspberry pi.  This only works if I use a powered USB hub.  Why? is their something wrong with my grounding.


septillion

Don't think it's a GND connection. Then the USB cable itself would fix it. But what is powered by the Arduino? The Arduino can hardly deliver any power when powered from 12V. Why not just power the Arduino from the 5V as well?
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

dwd002

I tried that and it didn't work so I assumed that arduino wasn't getting enough power.  The arduino is connected to a mpu6050 sensor and 4 esc's

septillion

No idea what are those. Found the mpu6050 as being a Accelerometer + Gyro. But ESC?

You didn't specify what kind of Arduino so I assume a Uno. And a Uno works on 5V. But you can't feed that from the Vin or the barrel jack. Only to the USB port or the 5V pin.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

dwd002

They're Electronic Speed Controllers they're used to drive motors.  They connect to the arduino and receive a PWM signal which tells them how fast to spin the motor. 
https://en.wikipedia.org/wiki/Electronic_speed_control

These are the ones I have
http://www.emaxmodel.com/blheli-series-12a-esc.html



septillion

Don't think they need much but okay.

To easy feed the Arduino, just splice a USB cable and directly connect the power lines to the Arduino to the same 5V supply of the Raspberry. What is the rating of the regulator?
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

dwd002

The regulator is rated for 5.3 volts and 3 amps.  I will try that thanks!

Go Up