Comments on: Adding Sensors to the Raspberry Pi Camera Robot Kit http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/ Tutorials and updates from Dawn Robotics Mon, 09 Nov 2015 16:39:02 +0000 hourly 1 http://wordpress.org/?v=3.7.11 By: Kevin Cook http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-906 Sat, 16 May 2015 14:23:29 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-906 Hi,

I have a few HC-SR04s from previous Pi projects and want to use one on the camera robot and not the proposed 3 pin one shown in the blog. Is there a way I can use the mini driver also for this sensor and not use the GPIO from the Pi? I can see it has a split of some sort on the signal side but I can’t work out where the pins should go on the Aduino. Any help/guidance ( or even instructions!) would be most welcome. I’m sure someone must have had a go using this more available (and popular?) sensor?

Thanks.

Kevin.

]]>
By: Alan http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-840 Tue, 07 Apr 2015 18:14:36 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-840 Hi there,

The IR camera should work fine on the robot with no code changes needed. As far as I know, the IR camera has the same hardware, just with the IR filter removed.

Regards

Alan

]]>
By: Devjyoti Ghosh http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-839 Tue, 07 Apr 2015 09:56:21 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-839 Hi,

I would like to know what changes in the code would have to be made to use a IR raspberry pi camera instead of the normal camera module. Do I need to add any specific libraries? How would my code for streaming change?

Thanks!

]]>
By: BartAdv http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-785 Mon, 16 Mar 2015 13:36:26 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-785 Minidriver is perfectly capable of I2C, it’s just you may run into memory related issue (program too big to upload onto minidriver (which is ATMega8)).

What do you mean by “connection is failed”?

]]>
By: Phong http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-784 Mon, 16 Mar 2015 13:31:51 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-784 Hi,

According to the mini-driver documentation, the pins A4 & A5 can be connected to I2C devices. Is it possible? And do we need specific configuration for that use?
I connect an accelerometer + gyros MPU 6050 into these pins, and I attempted to upload a sample code of reading raw values from the sensor. However, the connection is failed. The code I tried is from
http://playground.arduino.cc/Main/MPU-6050#short

From the article above I guess the mini-driver is incapable of connecting to I2C devices… Could you give me some insight?

Thanks!

]]>
By: Alan http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-720 Wed, 04 Feb 2015 18:35:14 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-720 Hi Peter,

If sensors are connected to the mini driver, and you have the latest version of our software, then you shouldn’t need to do anything else on the robot. To see readings from the sensor the easiest way is to use the py_websockets_bot library as described in the section entitled ‘Reading from the Sensors’.

Regards

Alan

]]>
By: peter http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-716 Wed, 04 Feb 2015 11:39:22 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-716 Hi, when i’ve installed my sesor (hardware) how must i do it for the software istallation??

Regards,
Peter

]]>
By: BartAdv http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-671 Wed, 14 Jan 2015 08:37:18 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-671 Well, I’ve started thinking about i2c cause I have to attach i2c accelerometer anyway. So it will be either on raspberry pi or on mini driver, and in any case, why not try connect them both anyway. Though it’s obvious USB is so much simpler, and I don’t know if faster even. It’s just the cable I’ve got there already is so clunky:) UART would be another alternative (though requiring LLC), and now when you mention SPI, oh…we will see.

]]>
By: Alan http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-670 Tue, 13 Jan 2015 22:24:43 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-670 Hi there,

Yes, mainly it’s a lack of space when building the sketch. If you build the mini driver firmware in the Arduino IDE with the board type set to ‘Arduino NG or older w/Atmega8′ you’ll see how much space there is or rather isn’t available. I think that in the latest version of the Arduino IDE it may say that it doesn’t fit into memory, although it does fit for version 1.01 (the version on the Pi). Looks like the Arduino libraries are bloating a bit with time.

If you wanted, you probably could fit the basics of I2C into the sketch, but then I was thinking that I’d struggle to fit the code in to actually do anything with it, and to tie it into the protocol I’ve written so that the Pi can communicate with the Mini Driver.

Interesting that you suggest getting rid of the USB cable and communicating with I2C. I’m actually trying to work out if there’s a nice way of getting rid of the cable and switching over to SPI communication. The nice thing about SPI communication is that those are the same pins used for the Atmel ISP (see here), so I could actually use it to upload sketches to the Mini Driver without needing the serial bootloader. This would free up some space for more code. :)

The main thing holding me back from SPI communication at the moment is the fact that I’d need some kind of level shifting on the line to protect the Pi from 5V, and also it’s not quite as foolproof to wire up as a USB cable.

Regards

Alan

]]>
By: BartAdv http://blog.dawnrobotics.co.uk/2014/09/adding-sensors-raspberry-pi-camera-robot-kit/#comment-666 Tue, 13 Jan 2015 11:45:29 +0000 http://blog.dawnrobotics.co.uk/?p=656#comment-666 Hello,

as these protocols aren’t supported in the Mini Driver firmware yet, and probably won’t be due to a lack of space

What kind of space limits you’ve encountered? Not enough memory to burn the sketch with Wire library referenced ? I’m asking cause I’m about to check the I2C (would even try to connect RPi via I2C to save myself from clunky USB cables)…

]]>