Steve Peart
- Sep 16, 2015
- 53
- Joined
- Sep 16, 2015
- Messages
- 53
Hello people,
This is my first post here, so bear with me as I don't know the protocols and things you might need from me in order to get help with my circuit.
Project:
I am building an RC Tank with a turret that will fire nerf bullets. It uses a Raspberry Pi with a WiFi dongle in the USB port. The raspberry pi is configured to be a wifi hotspot, running a nodejs app that will deliver a web page to my phone with the controls to operate the tank. The controls use a socket.io connection to deliver the position of the controls in order to calculate the relative percentages of drive on both sides of the tank, as well as turret rotation, pitch, and firing the gun.
Problem:
In order to drive the motors with enough current (that the RPi cannot deliver on it's own), I needed a motor controller board. I originally purchased an L298N Board online, which I got wired up properly and the tank was able to drive around just fine.
When I got to the turret, I realized that I needed another motor controller for the turret rotation motor, given that the board I had was completely used up because it supports only two motor outputs, now I needed 3 outputs.
Due to space limitations on the tank, there was just no place to fit another one of the controller boards I bought online, So I decided to just buy the chips and a proto-board and wire them together the way I needed it with the same amount of space as just one of the other controller boards. I got in deep with the L298 data sheet and made sure I was wiring things up to spec.
The Voltage Supply I am using is a LiPo 7.4 volt 2100mah hobby battery, which is wired in parallel to both motor controllers. I wired the 3.3V pin out of the RPi directly to the 3 enable pins I need from the 2 L298s so as to have them just enabled at all times. I have tested continuity between all parts of the circuit and it's fine there.
The main problem is that when I hooked things up and enabled the pin that should make the motor start spinning, nothing happened. I measured the voltage coming out of the pin when enabled and it's correct at 3.3V, but when I measure the voltage coming through the RC Battery to the circuit, it comes in around 2.5V instead of the expected 7.4V.
I am not sure how to debug this since I'm pretty new to the electronics game, coming from a software background. What could be causing this battery voltage drop? Does each L298 need it's own battery source? There are no motors currently plugged in to the other 2 connectors so I wouldn't think it would be drawing and current/voltage away from the circuit like this.
Any clues from this description of what I might be doing wrong?
Sorry for the long story, but any help would be awesome, let me know as well if you would like to know anything else about the setup.
Thanks!
This is my first post here, so bear with me as I don't know the protocols and things you might need from me in order to get help with my circuit.
Project:
I am building an RC Tank with a turret that will fire nerf bullets. It uses a Raspberry Pi with a WiFi dongle in the USB port. The raspberry pi is configured to be a wifi hotspot, running a nodejs app that will deliver a web page to my phone with the controls to operate the tank. The controls use a socket.io connection to deliver the position of the controls in order to calculate the relative percentages of drive on both sides of the tank, as well as turret rotation, pitch, and firing the gun.
Problem:
In order to drive the motors with enough current (that the RPi cannot deliver on it's own), I needed a motor controller board. I originally purchased an L298N Board online, which I got wired up properly and the tank was able to drive around just fine.
When I got to the turret, I realized that I needed another motor controller for the turret rotation motor, given that the board I had was completely used up because it supports only two motor outputs, now I needed 3 outputs.
Due to space limitations on the tank, there was just no place to fit another one of the controller boards I bought online, So I decided to just buy the chips and a proto-board and wire them together the way I needed it with the same amount of space as just one of the other controller boards. I got in deep with the L298 data sheet and made sure I was wiring things up to spec.
The Voltage Supply I am using is a LiPo 7.4 volt 2100mah hobby battery, which is wired in parallel to both motor controllers. I wired the 3.3V pin out of the RPi directly to the 3 enable pins I need from the 2 L298s so as to have them just enabled at all times. I have tested continuity between all parts of the circuit and it's fine there.
The main problem is that when I hooked things up and enabled the pin that should make the motor start spinning, nothing happened. I measured the voltage coming out of the pin when enabled and it's correct at 3.3V, but when I measure the voltage coming through the RC Battery to the circuit, it comes in around 2.5V instead of the expected 7.4V.
I am not sure how to debug this since I'm pretty new to the electronics game, coming from a software background. What could be causing this battery voltage drop? Does each L298 need it's own battery source? There are no motors currently plugged in to the other 2 connectors so I wouldn't think it would be drawing and current/voltage away from the circuit like this.
Any clues from this description of what I might be doing wrong?
Sorry for the long story, but any help would be awesome, let me know as well if you would like to know anything else about the setup.
Thanks!

