Go to advanced search

by mikronauts
Sun Jul 14, 2019 1:28 am
Forum: Beginners
Topic: What wireless controller can I use?
Replies: 14
Views: 204

Re: What wireless controller can I use?

Google "bluetooth wireless controller" I want to build a bought from ground up. Four wheels, four-wheel drive. I need two joysticks, one joystick for the two right Wheels another joystick for the two left Wheels. And a few other things. I would need and knob that I can control the speed of a motor w...
by mikronauts
Sun Jul 14, 2019 1:25 am
Forum: General discussion
Topic: Want to measure battery volts
Replies: 30
Views: 957

Re: Want to measure battery volts

I would suggest hiring someone with appropriate knowledge and experience to do the work. If it was a one-of for your own personal use, and you were learning, that is one thing, although still not wise without appropriate experience. If the customer wanted a one-of and was not only aware of your lack...
by mikronauts
Tue Jul 02, 2019 6:56 pm
Forum: Python
Topic: I2C lcd isnt working with multiprocessing(solved mp was not the issue))
Replies: 4
Views: 130

Re: I2C lcd isnt working with multiprocessing

Two threads (or programs) cannot access the same i2c pheripheral at the same time. Google "semaphores" (locks) and/or write one i2c server process and send messages to it from other threads. Google "server daemon" or "server thread" I have tried the lcd out of a thread in the same program, and in ot...
by mikronauts
Tue Jun 25, 2019 3:24 pm
Forum: Beginners
Topic: Raspberry pi 4 sold out?
Replies: 19
Views: 2592

Re: Raspberry pi 4 sold out?

That makes sense. 1GB .. Robots, NAS 2GB .. Educational desktop, test box 4GB .. Dev box, desktop I tend to keep a lot of tabs open, and prefer a 55" 4k tv for a monitor, or two 1080p monitors, so the dual micro hdmi with 4k looks great to me. With a USB3 SSD a 4GB Pi 4 will be a quite capable box. ...
by mikronauts
Tue Jun 25, 2019 2:34 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 710
Views: 62053

Re: Raspberry Pi 4 Thread - general discussion

Thanks, I will keep checking. Great news indeed! I ordered two boards - a 1GB, and a 2GB board, however I cannot find a 4GB board in stock in Canada, US, or UK. Please post here if you know any place eith 4GB in stock. Btw the additional i2c and uarts are great for my purposes. Last I check, the 4GB...
by mikronauts
Mon Jun 24, 2019 8:06 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 710
Views: 62053

Re: Raspberry Pi 4 Thread - general discussion

In low quantities, yes. Personally I ordered a few thousand nylon washers, nuts, screws and various height standoffs from a manufacturer for my boards. Price was ok. Shipping took a while. Did anybody complain about the M2.5 mounting holes (same as on previous models) yet? I can do that if you want ...
by mikronauts
Mon Jun 24, 2019 7:52 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 710
Views: 62053

Re: Raspberry Pi 4 Thread - general discussion

Great news indeed!

I ordered two boards - a 1GB, and a 2GB board, however I cannot find a 4GB board in stock in Canada, US, or UK.

Please post here if you know any place eith 4GB in stock.

Btw the additional i2c and uarts are great for my purposes.
by mikronauts
Sun Jun 16, 2019 4:53 pm
Forum: General discussion
Topic: Running 3 RC522 side by side continuously
Replies: 14
Views: 545

Re: Running 3 RC522 side by side continuously

Best guess: insufficient power Well I posted this as a new thread in troubleshooting, but it got removed and I'm not sure why. Anyways, I got the code to work, and I can run any two of my RC522 together. However, the moment I even just wire the third one in, everything stops working - the two workin...
by mikronauts
Thu Jun 13, 2019 5:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How 2nd UART based on I2C, SPI or USB ?
Replies: 2
Views: 298

Re: How 2nd UART based on I2C, SPI or USB ?

Just get a cheap usb serial device. Can you guide me? I'm looking for a 2nd hardware based serial interface available. I would like to avoid software based solutions and simply look for an existing HAT or e.g. USB2UART which provides a 2nd set of TX/RX signals. Google offers a lot but the results ar...
by mikronauts
Thu Jun 13, 2019 5:20 pm
Forum: General discussion
Topic: Running 3 RC522 side by side continuously
Replies: 14
Views: 545

Re: Running 3 RC522 side by side continuously

Easiest: - get three usb ttl adapters (or 2 plus pi gpio serial) - mod rc522 for serial instead of spi - use a separate thread per port See https://forum.arduino.cc/index.php?topic=442750.0 On modding So, here's a synopsis of what I am trying to do. I want to put 3 RC522 RFID readers side by side in...
by mikronauts
Tue Jun 04, 2019 3:03 pm
Forum: Automation, sensing and robotics
Topic: RS-232C Terminal to remotely control receiver volume. Can I do that?
Replies: 5
Views: 272

Re: RS-232C Terminal to remotely control receiver volume. Can I do that?

You could also use an ir led and lirc. Hi, guys, I'm wondering if there is a way to remotely control the volume on my stereo receiver using a raspberry pi connected to the receiver's RS-232C terminal. If anyone has any ideas or can direct me to someone or a site that can help, I would truly apprecia...
by mikronauts
Mon May 20, 2019 1:28 am
Forum: Beginners
Topic: RS485 HAT
Replies: 2
Views: 195

Re: RS485 HAT

A usb adapter is your best bet.
Shaimaa Badr wrote:
Sun May 19, 2019 10:35 am
I don't find RS485 HAT shield here in Egypt,, Can I use IC MAX485 and any help for how to connect with raspberry pi to the device has a rj45 socket or use CH340 USB to RS485 485 Converter Adapter Module??!
by mikronauts
Tue May 14, 2019 9:56 pm
Forum: General discussion
Topic: RPi high school lab. B+ issues. B no issues.
Replies: 24
Views: 1251

Re: RPi high school lab. B+ issues. B no issues.

Very frustrating. I am beginning to suspect those Pi's may have been zapped. Given the amount of time you have invested so far, perhaps get one or more new 3b+'s? Fortunately they are cheap. Or, break out the test gear... I would suspect an issue with the 3v3 regulation, or poor connection in the sd...
by mikronauts
Fri May 10, 2019 1:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Microchip/mcu
Replies: 7
Views: 552

Re: Microchip/mcu

Right now, I think an arduino nano 3 clone would probably suit you. Cheap, usb, tons of tutorials. You will have to learn how to communicate with it. You need to be more precise: "can expand my GPIO with 5" is meaningless. 5 what? Hi All, I'm searching for an microchip or mcu that can expand my GPIO...
by mikronauts
Mon May 06, 2019 3:57 pm
Forum: C/C++
Topic: BCM2835 library, I'm after 1 to 20 microsecond delays but needn't be very accurate
Replies: 7
Views: 1278

Re: BCM2835 library, I'm after 1 to 20 microsecond delays but needn't be very accurate

The diagram suggests that using an inverted CSEL as ST_CP, CLK & MOSI should work for your shift register. The shift registers I write to aren't SPI devices. They don't have MISO, MOSI,CSEL... pins. They just have a serial in pin, a clock pin and an enable pin. They take data according to the attace...
by mikronauts
Sun May 05, 2019 4:15 pm
Forum: General discussion
Topic: SPI speed and ADC sampling rate
Replies: 3
Views: 231

Re: SPI speed and ADC sampling rate

You are most welcome. Python is an interpreted language, with garbage collection, and not well suited to regular, precisely timed sampling. Writing your app in C would make the timing more predictable. You can improve your python code somewhat by: - use an integer array (not list) for storing the sa...
by mikronauts
Fri May 03, 2019 1:17 pm
Forum: General discussion
Topic: SPI speed and ADC sampling rate
Replies: 3
Views: 231

Re: SPI speed and ADC sampling rate

You need to post your code so we can see what you are doing. Use code tags so the indentation is not lost. Most likely causes: - you are not sampling at precise intervals - you are not reading the voltage correctly (sensor output range vs adc input range) - your voltage reference is not stable Hello...
by mikronauts
Tue Apr 30, 2019 5:43 pm
Forum: Other projects
Topic: Looking for recommendations of best place to start a project that needs collaboration
Replies: 4
Views: 324

Re: Looking for recommendations of best place to start a project that needs collaboration

Based on what you wrote, I would suggest starting a Wiki that you would maintain. The best way to get collaborators (IMHO) is to commit to making the project 100% open source, and ask for volunteers here, reddit, twitter etc. Hi all I'd like to start a project to create a Raspberry Pi powered open s...
by mikronauts
Mon Apr 29, 2019 11:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI: Problem with fast ADC sampling
Replies: 5
Views: 370

Re: SPI: Problem with fast ADC sampling

Due to Linux, and caching to a lesser degree, you cannot totally get rid of the jitter you are experiencing. The higher the sampling rate, the more apparent the jitter. Add a deterministic high speed micro controller to do the sampling to a large buffer and have it transfer the data to the pi (some ...
by mikronauts
Mon Apr 29, 2019 10:52 pm
Forum: General discussion
Topic: RPi high school lab. B+ issues. B no issues.
Replies: 24
Views: 1251

Re: RPi high school lab. B+ issues. B no issues.

Have you tried swapping the power cables between the good and bad b+'s? Swapping the power adapters? Swapping the sd cards between good and bad? Reducing the sd card lock? Measuring the 5v and 3v3 rails on the gpio header? I have moved two of the problematic B+'s and reinstalled the OS through the N...
by mikronauts
Fri Apr 19, 2019 2:07 am
Forum: General discussion
Topic: Control powerfull pwm fans with Pi
Replies: 11
Views: 1024

Re: Control powerfull pwm fans with Pi

Actually that would be enough as 12v * 2a * 2 is 48W
Imperf3kt wrote:
Thu Apr 18, 2019 10:25 pm
mikronauts wrote:
Thu Apr 18, 2019 9:39 pm
Good point, max current is only 2A on the L298.
Well, you can parallel up the inputs and outputs on this chip to make a 4A continuous drive bridge but that's still far short of 40W
by mikronauts
Thu Apr 18, 2019 9:51 pm
Forum: General discussion
Topic: Control powerfull pwm fans with Pi
Replies: 11
Views: 1024

Re: Control powerfull pwm fans with Pi

No idea, but as this is interesting, I googled a bit: https://www.ekwb.com/blog/what-is-pwm-and-how-does-it-work/ Shows a four pin pwm fan with the following signals GND, 12v, Tach, PWM Apparently ome fans have a controller that shape the PWM with ramping rising/falling edges. http://forum.arduino.c...
by mikronauts
Thu Apr 18, 2019 9:39 pm
Forum: General discussion
Topic: Control powerfull pwm fans with Pi
Replies: 11
Views: 1024

Re: Control powerfull pwm fans with Pi

Good point, max current is only 2A on the L298. Use a cheap L298 driver module, using a 12V power adapter for the fan (one module could handle two independent fans) If you google Raspberry Pi L298 you will find plenty of articles on driving motors like this. That will not work in this case. The fan ...
by mikronauts
Wed Apr 17, 2019 10:13 pm
Forum: General discussion
Topic: Control powerfull pwm fans with Pi
Replies: 11
Views: 1024

Re: Control powerfull pwm fans with Pi

Use a cheap L298 driver module, using a 12V power adapter for the fan (one module could handle two independent fans) If you google Raspberry Pi L298 you will find plenty of articles on driving motors like this. I am interested in the same topic. Since my background is not in electrical engineering, ...
by mikronauts
Tue Apr 09, 2019 1:36 pm
Forum: General discussion
Topic: Which motor control board
Replies: 5
Views: 293

Re: Which motor control board

I have used those - and many other - motor driver boards that need to run on 5V and worked fine from a 3v3 gpio signal. The only exceptions are the rare cases where the control signals need. more than5-10ma One of these? https://www.amazon.co.uk/Neuftech-H-bridge-stepper-controller-Raspberry/dp/B01K...

Go to advanced search