Go to advanced search

by ElEscalador
Sun Feb 16, 2020 2:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem with the Ublox neo 6M gps
Replies: 7
Views: 148

Re: Problem with the Ublox neo 6M gps

bensimmo wrote:
Sun Feb 16, 2020 6:56 am
look at /dev/serial0 and not the ttyAMA0 or ttyS0
It will point to the correct place if you use raspi-config's (or the desktop version) settings to enable the serial port and disable the serial console.
Ah right. I haven't used Raspian flavors in forever.
by ElEscalador
Sun Feb 16, 2020 12:51 am
Forum: Automation, sensing and robotics
Topic: can i use a relay backwards ?
Replies: 4
Views: 143

Re: can i use a relay backwards ?

Yes - the relay doesn't care which way the current is flowing and they are used all the time in commercial controls to toggle a machine from automatic to manual control - where the load is hooked up to common and two possible sources of energy are on the no/nc pins. Insert warning statement about sa...
by ElEscalador
Sun Feb 16, 2020 12:47 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem with the Ublox neo 6M gps
Replies: 7
Views: 148

Re: Problem with the Ublox neo 6M gps

Once you get it bootable again, as topguy suggested trying using only the raspi-config to disable the serial console. When that's done, plug in your gps to the uart pins 14 and 15, as well as supplying it 3.3v and ground from the pi. It should show signs of life... in any case, before you mess with ...
by ElEscalador
Sat Feb 15, 2020 12:02 am
Forum: General discussion
Topic: Is a Neodymium magnet a viable Raspberry Pi mount
Replies: 1
Views: 138

Re: Is a Neodymium magnet a viable Raspberry Pi mount

Yes and no. I've used magnets a few times where I wanted to be able to move PIs. Often all was just fine, but there is some point where too strong a field will prevent a PI (proven on a zero, at least) from booting. Here was my PSA and findings from a while back https://www.raspberrypi.org/forums/vi...
by ElEscalador
Sat Feb 08, 2020 2:34 pm
Forum: Troubleshooting
Topic: Magnetometers problem...
Replies: 4
Views: 106

Re: Magnetometers problem...

The standard solution is to move the imu as far as possible from these sources. I did notice as a kid that copper interfered with magnetism and have wondered if it could be used to block or minimize the distortion from something like motors, but have not spent any time looking into it. (if it would ...
by ElEscalador
Sat Feb 08, 2020 1:42 pm
Forum: Troubleshooting
Topic: How do I get data from my car?
Replies: 3
Views: 141

Re: How do I get data from my car?

U.S. cars since 199-something should have an OBD2 connector and interface - not sure about elsewhere. That makes it easy to plug in an inexpensive Bluetooth adapter. There might be better resources than reverse engineering an android app, but there are several to choose from that interface and read ...
by ElEscalador
Sat Feb 08, 2020 1:33 pm
Forum: Troubleshooting
Topic: Magnetometers problem...
Replies: 4
Views: 106

Re: Magnetometers problem...

I didn't study it closely but this looks like a decent primer.
https://appelsiini.net/2018/calibrate-magnetometer/
by ElEscalador
Sat Feb 08, 2020 1:31 pm
Forum: Troubleshooting
Topic: Magnetometers problem...
Replies: 4
Views: 106

Re: Magnetometers problem...

What software are you using to get an "angle?" Magnetometers have to be calibrated in place on their machine because parts on the machine will warp the magnetic field. If it's too close to motors the cause will be hopeless (it sounds like its too close to something on your machine that has a strong ...
by ElEscalador
Sat Feb 08, 2020 1:02 am
Forum: Automation, sensing and robotics
Topic: Tennis ball collector
Replies: 22
Views: 972

Re: Tennis ball collector

That's fair - I'm all about doing things for the challenge.
by ElEscalador
Fri Feb 07, 2020 3:05 pm
Forum: Troubleshooting
Topic: raspberry pi, L298N motor driver with 12v 8amp battery
Replies: 5
Views: 133

Re: raspberry pi, L298N motor driver with 12v 8amp battery

There's plenty out there but this one and the ten-amp version by the same company have served me well. https://www.amazon.com/gp/product/B01M4 ... UTF8&psc=1
by ElEscalador
Fri Feb 07, 2020 12:39 pm
Forum: Automation, sensing and robotics
Topic: 12v door lock using usb port
Replies: 2
Views: 133

Re: 12v door lock using usb port

Almost certainly not. Electromagnets take a lot of power - you could do something like use stepped-up and current-limited power from the PI's USB port to trickle-charge a 12v battery or something, but that's a ridiculous complication compared to just using a 12v supply to the door lock and a relay a...
by ElEscalador
Fri Feb 07, 2020 12:33 pm
Forum: Automation, sensing and robotics
Topic: Tennis ball collector
Replies: 22
Views: 972

Re: Tennis ball collector

When it's time to move up from a Pi3 because you need more speed for image processing, it's time to skip the Pi4 and move right to the Nvidia Jetson Nano. A few $ more and many times faster. Make that "many, many, many times faster" if you run your processes on the 128 core GPU.
by ElEscalador
Thu Feb 06, 2020 3:42 pm
Forum: Automation, sensing and robotics
Topic: AlphaBot + Raspberry Pi 4 issues
Replies: 6
Views: 171

Re: AlphaBot + Raspberry Pi 4 issues

The Pi 4 has all sorts of shortcomings and packages not prepared for it that I find it far too big a pain to work with for robotics except where I have to. Especially since it really doesn't provide any real benefit for most basic robot applications and consumes a lot more power. I don't know anythi...
by ElEscalador
Thu Feb 06, 2020 1:32 pm
Forum: Beginners
Topic: Fitting a fan without using GPIO?
Replies: 20
Views: 407

Re: Fitting a fan without using GPIO?

It's a petty pet peeve of mine that we can't get a couple of pins for a fan without interrupting access to the entire header. The choices are to splice into your ribbon cable, find a place on the board to solder to, or power via USB - you can get little US breakouts with screw terminals.
by ElEscalador
Wed Feb 05, 2020 2:27 pm
Forum: Automation, sensing and robotics
Topic: Need help sensing power consumption
Replies: 2
Views: 125

Re: Need help sensing power consumption

Yep, you've either got to break the wire and use a shunt in the circuit or put a clamp around a single conductor - the latter generally being the safer option.
by ElEscalador
Mon Feb 03, 2020 7:37 pm
Forum: Beginners
Topic: SRF10 Ultrasonic Sensor - Inaccurate Range
Replies: 2
Views: 82

Re: SRF10 Ultrasonic Sensor - Inaccurate Range

It seems that model has a gain setting you can set. That's the first thing I would look over.
https://www.robot-electronics.co.uk/htm/srf10tech.htm
by ElEscalador
Mon Feb 03, 2020 1:22 pm
Forum: Automation, sensing and robotics
Topic: Managing window blinds with an RPi
Replies: 3
Views: 148

Re: Managing window blinds with an RPi

Currently when you press on the up or down buttons on the wall when it's fully raised or lowered the motor stops. I will look for sensors that "look" at the blind rotations and go from there. Programming I am slow but never desist :) Thanks a lot for your advice. Oh, that makes initial setup magnif...
by ElEscalador
Mon Feb 03, 2020 12:53 pm
Forum: Automation, sensing and robotics
Topic: Managing window blinds with an RPi
Replies: 3
Views: 148

Re: Managing window blinds with an RPi

I'd say step one is get them to work by pressing a button or manually entering a command on the pi. Once that's done, the program can evolve endlessly as needs (and programming abilities) change. Without being able to take your existing blinds apart, I can only guess that you can get relays added in...
by ElEscalador
Mon Feb 03, 2020 12:57 am
Forum: General discussion
Topic: PI 4B & wiringPi GPIO not working, any help appreciated
Replies: 5
Views: 176

Re: PI 4B & wiringPi GPIO not working, any help appreciated

Definitely switch to Pigpio sooner rather than get attached to Wiring Pi - which was also great. Here's a basic blink.cpp. #include “pigpio.h” using namespace std; int main() { int pin = 25; gpioInitialise(); gpioSetMode(pin, PI_OUTPUT); gpioWrite(pin, 1); gpioSleep(PI_TIME_RELATIVE, 1, 0); gpioWrit...
by ElEscalador
Sun Feb 02, 2020 2:28 pm
Forum: Python
Topic: Python code not able to turn on GPIO
Replies: 3
Views: 150

Re: Python code not able to turn on GPIO

Without a delay (time.sleep(int)) it goes on then off so fast you can't see the light and the relay doesn't have enough time to physically move.
by ElEscalador
Wed Jan 29, 2020 11:21 pm
Forum: Beginners
Topic: Raspberry Pi control Relay with momentary switch
Replies: 27
Views: 1534

Re: Raspberry Pi control Relay with momentary switch

Mixing automated control and manual control is a problem if the automated control system has no idea of the state of the manual controls. For example: Assume the relay and the manual switch are wired in a similar manner to the light switches at the top and bottom of your stairs. All the Pi does is ...
by ElEscalador
Wed Jan 29, 2020 3:15 pm
Forum: Beginners
Topic: Raspberry Pi control Relay with momentary switch
Replies: 27
Views: 1534

Re: Raspberry Pi control Relay with momentary switch

We must be crossing our wires due to regional circumstances. (Get it? Crossing wires... ok, nevermind that). In the US what we call 3-way wiring is two SPDT switches. Like so: https://images.app.goo.gl/Nfqn61HrP9qFQpya7 . If either fails in either position, the other will continue to work as a simpl...
by ElEscalador
Wed Jan 29, 2020 1:55 pm
Forum: Beginners
Topic: Raspberry Pi control Relay with momentary switch
Replies: 27
Views: 1534

Re: Raspberry Pi control Relay with momentary switch

definitely doable with a push-button. Not for 3 position switching. Remember this is meant to be as simple as possible, to return manual control should the Pi system fail. I would probably specify a 3-postion centre-off rotary switch, given Auto-Off-On functionality, but it must be checked by a loc...

Go to advanced search