Go to advanced search

by picandies
Fri Oct 25, 2019 7:14 pm
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

Here is some info on a newer version of pigpio (but it seems to only be for C, not python) It contains some useful generic tips & thoughts: https://www.npmjs.com/package/pigpio I also found something called pi-gpio, but it appears to be something else entirely...wonder why they have to have a simila...
by picandies
Fri Oct 25, 2019 4:12 pm
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

Is there a full pigpio manual or complete tutorial? The weblink is very nice (and nicely detailed!), but it is a bit of uncertainty knowing what parts go together (or are needed to be put together), or what should be avoided.
by picandies
Fri Oct 25, 2019 7:19 am
Forum: Troubleshooting
Topic: WaveShare High-Percision AD/DA (ADS1256) with RPI 2B
Replies: 45
Views: 18968

Re: WaveShare High-Percision AD/DA (ADS1256) with RPI 2B

I'm using their basic code from their link to read all channels (just prints them to the screen) https://www.waveshare.com/wiki/File:High-Precision-AD-DA-Board-Code.7z However, it seems like it's only taking about 10 samples per second...mighty slow. How can you increase the speed, maybe to 100/sec?...
by picandies
Fri Oct 25, 2019 3:45 am
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

Wow, thanks...you were correct...turning off the 1-wire setting let's things work perfectly without the "mysterious stopping"(or at least it seems so far). I'm sure I would have spent another session looking around for a reason. One question---I see several pins avail for hardware clock & different ...
by picandies
Wed Oct 23, 2019 3:49 pm
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

No nothing else is connected to the rpi, other than a scope probe. This is a new rpi & this is the only code running
by picandies
Wed Oct 23, 2019 8:58 am
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

Strange, this code make the wave (200 KHz), but after about 10 seconds the signal suddenly stops...the program is sitting in the while loop (the print never prints, as expected)...so why is the signal stopping? It needs to keep going! I tried running it a few times...with about the same results....s...
by picandies
Wed Oct 23, 2019 8:51 am
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

I know the rpi can can change speeds as it chuggs along, gets hot, etc...will this particular setup always have an accurate freq? (I don't want much variation). I need to know that it is fairly steady.
by picandies
Wed Oct 23, 2019 8:40 am
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

OH...I change io 18 to 4 & now it works!! It would be nice if the message said GPIO PIN , for clarity (if possible). I didn't know it was referring to anything pin-specific I'm jumping for joy! This is a cool package...why don't they mention in the rpi guide? Are there other pins where this should w...
by picandies
Wed Oct 23, 2019 8:17 am
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Re: Need 50% wave, not PWM

Hi Joan: Thanks very much!! I am making some progress, I am trying it on the rpi3, with the latest Stretch. I installed pigpio & entered: sudo pigpiod ....no trouble reported Then I had some test code & tried it to see if I could make something happen import time import pigpio pi = pigpio.pi() # Con...
by picandies
Wed Oct 23, 2019 4:38 am
Forum: General discussion
Topic: Need 50% wave, not PWM
Replies: 23
Views: 952

Need 50% wave, not PWM

Hello: Using an RPI4 with buster, in Python 3. I need to generate a mid freq square wave (50%) at about 350KHz, on one of the I/O pins (any pin will be fine, not particular). This will feed the rest of the counter logic. I've found a number of ways to make PWM at around 1 KHz, but they don't seem to...
by picandies
Sun Oct 13, 2019 11:48 pm
Forum: General discussion
Topic: Bluetooth--more than one setting?
Replies: 3
Views: 276

Re: Bluetooth--more than one setting?

Oh, the one under preference is indeed Blueman (2.0.4)...good call....must have come with the pi, or I don't remember installing it. I'm not familiar with Simon Long or his widget ...is that the one included on the main desktop bar? Actually, it seems like Blueman is more informative in this case, m...
by picandies
Sun Oct 13, 2019 8:24 pm
Forum: General discussion
Topic: Bluetooth--more than one setting?
Replies: 3
Views: 276

Bluetooth--more than one setting?

BT Icon: On the RPI screen, top right, there is a bluetooth "icon" you can click on it & make bluetooth connections to your devices. I've used that with various success. However, I just noticed under the "pi" icon/preferences menu, there is also a bluetooth manager. Clicking on that brings up anoth...
by picandies
Sat Oct 12, 2019 4:29 pm
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 381

Re: Hardware shows no service avail

@Douglas6

Thanks for the tips...you are the Bluetooth wiz!!
Your expert help is very appreciated!
by picandies
Sat Oct 12, 2019 5:23 am
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 381

Re: Hardware shows no service avail

WOW! That seemed to do the trick...I got the address using the bluetoothctrl & did the rfcomm with the address.. Then I was able to open the terminal at /dev/rfcomm0 & scan some codes...for some reason after about a 30 second-1minute, it would no longer scan...not sure why (maybe the scanner is timi...
by picandies
Sat Oct 12, 2019 12:24 am
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 381

Re: Hardware shows no service avail

What scanner is it?


Trohestar N3 unit..a nice unit
I'm not sure that UI widget is completely accurate.
what do you mean by that?
Never heard of rfcomm or finding a bluetooth address...is there some info? ...will do some sleuthing.
by picandies
Fri Oct 11, 2019 8:31 pm
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 381

Hardware shows no service avail

I am going in circles trying to get this scanner working...so I'll post my steps , in case there is something I've overlooked! The scanner works fine in windows10 Bluetooth in serial spp mode (terminal shows scan number codes) Windows10 has been unpaired, so as to not potentially interfere with the ...
by picandies
Fri Oct 11, 2019 5:56 pm
Forum: General discussion
Topic: need usable scanner
Replies: 1
Views: 131

need usable scanner

Hi: For this database data entry app & package detecor, I need a wireless handheds bluetooth barcode scanner to send package data into Python (when certain package pass through an actuator moves). I've looked around and actually ordered some Chinese scanner , but could not get it to connect in seria...
by picandies
Wed Sep 11, 2019 5:06 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 422

Re: Door lock help

Can the serial automatically rcv information, while other code is on-going? I don't want to have everything grind to a halt waiting for a scan (which could occur at any time). I suppose there is a flag or something to indicate that new data is ready.
by picandies
Wed Sep 11, 2019 3:09 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 422

Re: Door lock help

here is the link for the manual

http://amazonfiles.s3.amazonaws.com/ct80.rar
by picandies
Wed Sep 11, 2019 12:26 am
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 422

Re: Door lock help

You could catch the characters - have look at this:
does that work on the rpi??
got: AttributeError: module 'keyboard' has no attribute 'is_pressed'

There must be some way to read the scan values into a python app
by picandies
Tue Sep 10, 2019 5:04 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 422

Re: Door lock help

Can you redefine that usb (scanner) connection as a second keyboard & have it instead read by the python program?
What if there were no entry fields in the first place--how would it be read into the program?
by picandies
Tue Sep 10, 2019 8:25 am
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 422

Re: Door lock help

How can I tell what connection type it is? It appears to be emulating a keyboard, since it tries to fill in the entries. Is there a way to redirect those so they go into the python program instead? I saw somewhere about treating a scanner as a secondary keyboard, with some examples, but can't find t...
by picandies
Mon Sep 09, 2019 5:27 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 422

Door lock help

Hello: I'm using rpi4 & python to make a door lock security system. You can enter name & other info (times, logs, etc) as the program runs. To get in I have a handheld usb scanner that read a "badge" code (6 digit std barcode). The issue is the reader works, but it wants to enter the numbers into th...
by picandies
Mon Jun 24, 2019 8:06 pm
Forum: Compute Module
Topic: compute moduel upgrade (rpi4)
Replies: 12
Views: 1951

compute moduel upgrade (rpi4)

When will the compute module get similar rpi4 upgrades (such as more memory, usb3, faster processing)?
They've kinda kept their specs in sync, hope it continues for ease of development.
by picandies
Tue Mar 26, 2019 8:53 pm
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 1361

Re: Prevent Tkinter window minimize

Thanks for the good info (never heard of "unmap") & also the sample code---about to go give it a try!

Go to advanced search