Go to advanced search

by birddseedd
Mon Jan 21, 2019 7:53 pm
Forum: Beginners
Topic: What function would I use to write to a file?
Replies: 9
Views: 425

Re: What function would I use to write to a file?

Presuming you are talking about doing this in python , you would use file.write to write the data to a file of your choice , it could be a text file or a comma-separated values file depending on how you format it. https://www.pythonforbeginners.com/files/reading-and-writing-files-in-python lots of ...
by birddseedd
Mon Jan 21, 2019 7:43 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

I have 4 wires at a time (plus 5v power and ground). I light up the R_EN and L_EN. then choose which of the PWM wires i want to light up for direction and speed. This does not seem right. Shouldn't I be lighting up only ONE of the R_EN and L_EN wires along with the same PWM? In fact on my arduino p...
by birddseedd
Mon Jan 21, 2019 7:41 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

I decided to hook this up to a laptop power supply and linear actuator. I got it working. So I'm thinking that its the power i'm using. I have 3 D batteries taped together. measures just below 5 volts. Is this board using all 5 volts and leaving nothing for the motor? that seems like a lot, especia...
by birddseedd
Mon Jan 21, 2019 6:53 pm
Forum: Beginners
Topic: What function would I use to write to a file?
Replies: 9
Views: 425

What function would I use to write to a file?

I would like to keep a recording of a servo location, gps location and compass direction and save them to a file to later retrieve. Not sure where exactly to begin.

thanks
by birddseedd
Mon Jan 21, 2019 6:52 pm
Forum: Beginners
Topic: What function would I use to do something every half second?
Replies: 6
Views: 285

What function would I use to do something every half second?

Like a loop that would run every half second.

thanks
by birddseedd
Mon Jan 21, 2019 6:51 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

and this information taken from the web page 1.RPWM: forward level or PWM signal input, active high 2.LPWM: Reverse level or PWM signal input, active high 3.R_EN: forward drive enable input, high-level enable, low level off 4.L_EN: Reverse drive enable input, high-level enable, low level off 5.R_IS...
by birddseedd
Sat Jan 19, 2019 1:21 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

This is were I said you needed to do some testing, as the information says its an output that would imply that the board has its own 5v regulator on board that is powered from the motor supply. I would connect your motor power supply to the motor driver board and then measure between VCC and ground...
by birddseedd
Sat Jan 19, 2019 12:44 am
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

Well the pin out seems a bit confusing as all the pins starting with R seem to indicate forward all the pins starting with L seem to indicate reverse, so you will have to make sure you don't enable both at the same time if you intend to use both directions. So holding the controller in front of you...
by birddseedd
Fri Jan 18, 2019 10:51 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

now to try and figure out where exactly they go on this H Bridge As I said tell us which motor driver board you have ( link to supplier ) and we can help. Sorry. Been a stressful day. New kid. Life stuff. This is the one im using. I am using it on an Arduino project. While it only controls one moto...
by birddseedd
Fri Jan 18, 2019 10:43 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

gpiozero uses BCM numbering, so 4 and 14 are next to each other 4 being on the left row and 14 being on the right of pins https://i.imgur.com/mmNwAT2m.jpg if you read the documents it tells you the pin numbers in there https://gpiozero.readthedocs.io/en/stable/recipes.html I would not recommend usi...
by birddseedd
Fri Jan 18, 2019 9:57 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

Well. I think i have found pins 4 and 14. from a diagram for version 1 pi. Now I need to figure out how to use the controller. its like any other controller, there should be a left and right signal that you turn off and on respectivly, and a pwm line that is a variable for speed.
by birddseedd
Fri Jan 18, 2019 9:42 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Re: Don't seem to be getting any output from pins. what did i do wrong?

It would help if you showed us which tutorial you are following and which motor controller you are using. If your motor controller requires 3 inputs you probably have enable and then 2 direction pins, you will need to pull the enable high or low depending on the motor controller you have before the...
by birddseedd
Fri Jan 18, 2019 9:10 pm
Forum: Beginners
Topic: Don't seem to be getting any output from pins. what did i do wrong?
Replies: 24
Views: 760

Don't seem to be getting any output from pins. what did i do wrong?

ok, so i've got the pi up and running. its a RPi 2 model B. I'm trying to use pins 4 and 14 as described in an official tutorial. My goal is to control a motor. I'm confused by this because on arduino the motor controller uses 3 pins. the 3rd being pwm. But with the motor library its only using 2 pi...
by birddseedd
Fri Jan 18, 2019 3:48 am
Forum: Beginners
Topic: first app on pi, can't decide on language
Replies: 3
Views: 203

Re: first app on pi, can't decide on language

You might want to continue with the language you are familiar with, if it can be compiled by the RPi but you will find more pre-writen RPi code with python, somewhat less so with c. If the object is to make the RPi do something, using ground broken by others is efficient. On the other hand, if you ...
by birddseedd
Fri Jan 18, 2019 1:58 am
Forum: Beginners
Topic: my cousin gave me a pi. now what?
Replies: 8
Views: 716

Re: my cousin gave me a pi. now what?

Why no usb charger? i'm using a wall outlet charger. seems to be running fine. i have internet access and got netflix working. Its a little choppy. maybe ill buy a new one that runs faster. this one is 900 mhz. my interests are robotics. I plan on making an app that controls a servo (my end up being...
by birddseedd
Fri Jan 18, 2019 1:52 am
Forum: Beginners
Topic: first app on pi, can't decide on language
Replies: 3
Views: 203

first app on pi, can't decide on language

so. python seems to be the usual. C is fast which is good for what I want to do. But it sounds like a larger learning curve. My experience is mostly in LSL, a c syntax scripting language in the second life game. A bit of asp.net, mainly interfacing websites with mssql. I have also built a rfid gate ...
by birddseedd
Fri Jan 04, 2019 3:29 pm
Forum: Beginners
Topic: my cousin gave me a pi. now what?
Replies: 8
Views: 716

my cousin gave me a pi. now what?

my cousin gave me a pi. now what?

Go to advanced search