Close

ZeroBot - Raspberry Pi Zero FPV Robot

Back to project overview

Raspberry Pi Zero 3D Printed Video Streaming Robot

Discussions

[deleted]

[this comment has been deleted]

Max.K wrote 04/29/2018 at 12:50 point

That's very strange. At least the temperature display should always work. Have you used the provided SD card image?

  Are you sure? yes | no

Max.K wrote 04/30/2018 at 08:39 point

You might not have i2c enabled in the Raspi-Config:

https://www.raspberrypi.org/documentation/configuration/raspi-config.md

Maybe because of this the node script crashes.

  Are you sure? yes | no

Josh wrote 04/26/2018 at 16:42 point

Is there enough clearance for headers on the boards?  

I was thinking of getting a Pi Zero WH and soldering headers onto the other boards.  I haven't soldered in >10 years, and working on this with my kids, so I figure that will make it easier to fix wiring mistakes.

Thanks for sharing the cool design!

  Are you sure? yes | no

Max.K wrote 04/27/2018 at 22:22 point

Sorry but the way the Pi is mounted, there is not enough clearance for the headers that are soldered to the Pi Zero WH. Attaching headers to the other boards might be difficult as well because there is little room inside the chassis. But don't despair, soldering these parts should be fairly easy. You can use any old soldering iron. Maybe try it out on some scrap circuit boards before soldering the Raspberry Pi.

  Are you sure? yes | no

stuart_riggs wrote 04/25/2018 at 02:45 point

This came up with an erro:

pi@raspberrypi:~ $ sudo apt-get install apache2 node.js npm

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Package apache2 is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package 'apache2' has no installation candidate

E: Unable to locate package node.js

E: Couldn't find any package by glob 'node.js'

E: Couldn't find any package by regex 'node.js'

E: Unable to locate package npm

pi@raspberrypi:~ $ 

  Are you sure? yes | no

Max.K wrote 04/25/2018 at 07:13 point

Are you connected to the internet?

Try running: sudo apt-get update

  Are you sure? yes | no

stuart_riggs wrote 04/25/2018 at 09:54 point

apt-get update works fine in the earlier step.  Is there another syntax to get the apache2?

  Are you sure? yes | no

Max.K wrote 04/25/2018 at 10:20 point

Maybe Stackoverflow will help you with that problem as It's not just related to this robot. I'm no Linux expert. I can only google you error messages. 

  Are you sure? yes | no

stuart_riggs wrote 04/24/2018 at 15:31 point

The following command does not work:

pi@raspberrypi:~ $ git clone https://github.com/CoretechR/ZeroBot Desktop/touchUI

-bash: git: command not found

Any ideas?

  Are you sure? yes | no

Max.K wrote 04/24/2018 at 16:03 point

Are you using a Lite version of Raspbian?

In that case you have to manually install git using: 

sudo apt-get install git

But I would recommend using the regular Raspbian.

  Are you sure? yes | no

stuart_riggs wrote 04/24/2018 at 16:25 point

Yes, I have Lite. i had a feeling it was due to Raspbian-lite. 

Thank you

  Are you sure? yes | no

buchnoun wrote 04/23/2018 at 22:28 point

it was my mistake : I had connected the motor driver after the MT3608 ! it was draining the power for the pi (i guess)  everything working great now, I'm still waiting for the ADC module but so far so good. Thanks for this amazing robot :-)

  Are you sure? yes | no

buchnoun wrote 04/22/2018 at 23:21 point

I'm struggling with power :( when mini USB is connected directly to the pi everything's working great! but when I'm using battery it seems there's not enough power to get the pi working : the led blink I can connect once then nothing! I've double check to have 5V at MT3608, yet I didn't wire the ADS and the leds. Could it be that my MT3608 is faulty? I've used breadboard wires do I need to use bigger ones? any help appreciated :-) thanks

  Are you sure? yes | no

Max.K wrote 04/23/2018 at 08:01 point

Breadboard wires should be fine, although thicker wires might be better. A faulty MT3608 could be the reason. Those things are super low-quality, maybe you have a spare one that you can use. Are you sure there are no short-circuits, is there anything getting hot? 

  Are you sure? yes | no

buchnoun wrote 04/23/2018 at 09:45 point

nothing getting hot, I'll try with another MT3608. What is weird is it's working very well when the pi is connected through USB... but what's the point to get a Zerobot with a cable? :) I've noticed on your first pic that there's 2 MT3608 but only one in the wiring diagram and the second picture... Am I missing something?

  Are you sure? yes | no

Max.K wrote 04/23/2018 at 14:42 point

I made a mistake with the pictures. Originally I wanted to use a second MT3608 just for the motors, but couldn't fit it into the chassis. It's optional.

  Are you sure? yes | no

buchnoun wrote 04/21/2018 at 13:52 point

Hi, great project, where can I find a diagram to wire the pi? I'm lost as to know where GPIO x is on the actual board... I know it's a dumb question but why the heck are all those pins not numbered in a logic way ?? :)

  Are you sure? yes | no

Max.K wrote 04/21/2018 at 15:37 point

There's a wiring diagram in the instructions on this site. For the Raspberry Pi pinout, you will have to google that. The GPIO pins are probably organized to reduce the length of the tracks and the amount of vias on the PCB.

  Are you sure? yes | no

buchnoun wrote 04/21/2018 at 23:44 point

thanks for your answer what does mean : "5V USB port" on the wiring diagram? 5V can't be connected on pin 2 or 4?

  Are you sure? yes | no

Max.K wrote 04/22/2018 at 09:46 point

On the opposite side of the USB port that's used to power the raspberry pi zero, there are two pads: 5V and GND. You could connect to the GPIO directly, but then you won't have the protection diode.

  Are you sure? yes | no

Bruno Ricardo Santos wrote 04/20/2018 at 22:00 point

I have everything almost running, but a problem... 

In the touchID, up and down turns to right or left and left and right is forward and reverse... I thing I have the wires that go to the motors wrong.... 

  Are you sure? yes | no

Bruno Ricardo Santos wrote 04/20/2018 at 22:15 point

Problem solved ! Just switched the wires in one motor and now it's ok ! Thank you for such an amazing project ! Since I've found this on Thingiverse will post pictures there ! Thank you !  I had fun doing this and learned a lot about electronics !

  Are you sure? yes | no

Bruno Ricardo Santos wrote 04/18/2018 at 23:37 point

Hi Max.K. Love the project and almost finishing it ! 

I'm in the process of wiring it all up, but I'm having a doubt - electronics is not my strong suite - where to connect all the ground wires ? To the Raspberry PI Pins ? To the batteries ?  Thank you ! 

  Are you sure? yes | no

Max.K wrote 04/19/2018 at 08:27 point

The grounds of all components are interconnected. To reduce the amount of cables I soldered the GND-pins for the step-up converter , motor controller and charger directly to the battery. Then the LEDs and voltage sensor are soldered to the Pi terminals with thinner wires. But it's all the same electrical connection.

  Are you sure? yes | no

Bruno Ricardo Santos wrote 04/19/2018 at 09:58 point

Thank you ! Will terminate today and try it ! :)

  Are you sure? yes | no

laflaf3d wrote 04/16/2018 at 14:31 point

Hi Max.K.

unfortunately for the lifetime of our 18650 Li-ion Battery, it's doesn't like to be charged under C/2. So, to spare this lifetime we should charge these battery at 2.6A ! 

I guess for 2 parallel battery we need this kind of stuff : 

https://fr.aliexpress.com/item/Micro-USB-5V-1A-4-2V-3A-18650-TP4056-Lithium-Battery-Charger-Module-Charging-Board-With/32832047993.html

Crazy, isn't it ?

Best regads

  Are you sure? yes | no

Max.K wrote 04/16/2018 at 15:32 point

Are you suggesting the charging rate is too low? That would be the first time I heard that. 

  Are you sure? yes | no

laflaf3d wrote 04/17/2018 at 06:55 point

Yes it's strange regarding all Li-Ion's device charging time / capacity. 

In Lipo's world we know that low current's charging make crystalization and decrease lifetime. I read many thing and wrote you too quickly. 

APOLOGIZE !

For Li-Ion (not Li-Po), charge rate is about 0,5C to 1C. Best at 0,8C (http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries). After read all the night ( ;-) ) I guess our TP4056 is good for the job.

  Are you sure? yes | no

MP wrote 04/14/2018 at 22:36 point

Wow, I love the new additions, specially the voltage sensor. What would be great now would be some kind of self-charging device, like automatically placing itself over a charging mat when battery is low (like a roomba).

  Are you sure? yes | no

BitwiseNL wrote 04/09/2018 at 05:11 point

HI, 

First i have to say, Great project..  :D

But .... i'm stuck.

I don't seem to get past step 3 , to be more exact, starting the app crashes after the 2018 update. 

App worked great at first boot with fresh SD.

this is what i get ... ( tried it 2 times with new images ): 

__________________________

pi@ZeroBot:~/Desktop/touchUI $ sudo node app.js

/home/pi/Desktop/touchUI/node_modules/socket.io/lib/index.js:177
  const keysIterator = this.parentNsps.keys();
  ^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)n
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/pi/Desktop/touchUI/app.js:3:10)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

____________________________

Has anyone else has expirienced this? 

How to solve this ? 

  Are you sure? yes | no

Max.K wrote 04/10/2018 at 06:56 point

Socket.io got updated just a week ago. Maybe you could try to downgrade it to a previous version using:

npm uninstall socket.io

npm install socket.io@2.0.4

  Are you sure? yes | no

BitwiseNL wrote 04/10/2018 at 19:41 point

Tried it and still got the same problem .. 

/home/pi/Desktop/touchUI/node_modules/socket.io/node_modules/engine.io/node_modules/uws/uws.js:3

const http = require('http');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Server.init (/home/pi/Desktop/touchUI/node_modules/socket.io/node_modules/engine.io/lib/server.js:115:16)
    at new Server (/home/pi/Desktop/touchUI/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
    at Function.attach (/home/pi/Desktop/touchUI/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
    at Server.initEngine (/home/pi/Desktop/touchUI/node_modules/socket.io/lib/index.js:274:21)

  Are you sure? yes | no

Max.K wrote 04/11/2018 at 06:35 point

Have you already set the node.js script to run on boot? Only one instance of it can be executed, so might just be starting a script that is already running. Have you tried 

killall node

before running the node.js script? That it even happens after reinstalling either means that some software has changed or you might be making a simple mistake. I will try the install if the killall command doesn't help. Also, there is always the option to use the SD card images if the manual install does not work.

  Are you sure? yes | no

njichopbrandon wrote 04/04/2018 at 17:41 point

Great project

  Are you sure? yes | no

Max.K wrote 03/29/2018 at 20:56 point

Yes, that looks like the camera I used. Most of them are identical copies of the original pi camera.

  Are you sure? yes | no

laflaf3d wrote 03/30/2018 at 07:38 point

thanks. I saw this cam is 5MP and not 8MP but only 8 bucks. I ordered it and I will tell about it.

  Are you sure? yes | no

Max.K wrote 03/30/2018 at 08:17 point

The camera I am using is only 5MP, too. The older models are cheaper and the video stream is low resolution anyway.

  Are you sure? yes | no

mariusdp wrote 03/15/2018 at 07:31 point

Hi,

npm pigpio will not install on rpi lite. also tried bare lxde with no result. Is there any way to install npm pigpio on lite - reason for that is that would work smoother and the cpu would not stay @100% all time.

If anyone have a solution please help.

PS: i am just a beginner so please try to use simple words :P (so you don't scare my PI)

Thank you,

  Are you sure? yes | no

Max.K wrote 03/29/2018 at 21:01 point

Sorry for the late answer. Hackaday.io doesn't show me notifications sometimes. 

Have you done the required "sudo apt-get install pigpio" ? Because that would be the most obvious solution.

Anyway the difference in cpu usage should be minimal between Raspbian and Raspbian lite.

  Are you sure? yes | no

valerigolade wrote 01/16/2018 at 19:51 point

Hi Max.K, thanks a lot for your job. For me it's work on Raspberry Pi 3 with manual installation.

I have just one problem. To drive my bot with a computer and a mouse, it's work with Microsoft Edge but mouse don't work with Google Chrome. Do you have any idea ?

I think it's a problem with Google Chrome but i don't find solution.

Thanks for your help.

  Are you sure? yes | no

Max.K wrote 01/19/2018 at 22:22 point

Sorry for the late response. I haven't had this problem yet. Can you see the joystick elements in chrome or are they just not working? You could try the incognito mode to see if there is a problem with the plugins. 

  Are you sure? yes | no

valerigolade wrote 01/19/2018 at 23:00 point

Thanks for your response.

The joystick elements don't appear with mouse and my motors don't work. I think it's a problem from Chrome Version 63.0.3239.132 (Build officiel) (64 bits) or plugins missing.

It's work with Edge and Android Mobile, joystick elements and motors.

I don't know Incognito Mode, could you guide me about this please.

Thanks Max

  Are you sure? yes | no

Max.K wrote 01/22/2018 at 10:01 point

In Chrome you can press CTRL+SHIFT+N to open an inkognito tab. In this mode all the usual plugins and adblockers are disabled. Have you tried another computer with Chrome? I am using Chrome as my main browser an have never had this probem.

  Are you sure? yes | no

averneus wrote 09/30/2017 at 19:29 point

Since the stream is transferred through the port 9000 which is different from the controller port 3000. I believe it is necessary to open port for 3000 and also for 9000 from the router in order to control your bot from anywhere in the world.

Have you ever tried this? I plan to do it for tomorrow morning. But you know opening so much ports are creating security risks. Is there anyway to unify all these ports?

  Are you sure? yes | no

averneus wrote 10/01/2017 at 17:33 point

Yeap, it is now working!

  Are you sure? yes | no

Alexandre Mainardi wrote 09/25/2017 at 03:36 point

Good job! PS: The node-waf package has been replaced by node-gyp. The package is not available anymore: https://www.npmjs.org/search?q=node-waf

  Are you sure? yes | no

spencerjack96 wrote 01/05/2018 at 16:49 point

I have an error regarding this when I run "sudo npm install socket" what can i do?

  Are you sure? yes | no

juandelacosta wrote 09/09/2017 at 11:10 point

whats the best glue to glue the motors to the hub wheels

  Are you sure? yes | no

Max.K wrote 09/09/2017 at 13:21 point

Hot glue worked well for me. With some force it can be peeled off again.

  Are you sure? yes | no

juandelacosta wrote 09/08/2017 at 09:01 point

can alternative to gpio18 be used? reason why i ask is i would like to get audio out.

  Are you sure? yes | no

Max.K wrote 09/08/2017 at 09:24 point

Yes, I just selected 4 random pins that are close to each other. You will have to change 1 line in the code.

  Are you sure? yes | no

juandelacosta wrote 09/09/2017 at 02:39 point

nice ok parts are arriving and ill get to that. i have to build a audio circuit also. still trying to figure how to mute mic while fpv is moving. ill have to add a usb mic

  Are you sure? yes | no

juandelacosta wrote 10/04/2017 at 09:51 point

which line?

  Are you sure? yes | no

Max.K wrote 10/04/2017 at 16:37 point

There is a file called app.js (I think it's in the folder TouchUI). Right at the beginning of the file you will find four lines of code containing the gpio numbers (A1 = new Gpio(27, {mode: Gpio.OUTPUT}),) etc

  Are you sure? yes | no