Go to advanced search

by scotty101
Thu Dec 02, 2021 1:08 pm
Forum: Other projects
Topic: Live ScoreBoard
Replies: 1
Views: 93

Re: Live ScoreBoard

Yes this is definitely possible. You could have a web server running on the Pi with a form that authorised users can enter new results in to which are then stored in either a database or just a simple text file. (Alternatively, if you already have a website setup with the results, perhaps the users ...
by scotty101
Thu Dec 02, 2021 12:58 pm
Forum: Beginners
Topic: I was wondering how easy it would be to store all the data into an Excel fil
Replies: 17
Views: 543

Re: I was wondering how easy it would be to store all the data into an Excel fil

You can buy Raspberry Pi Powered PLC style modules which will have a 24v input/output and should be more tolerant to long cable lengths. The very fact that these industrial devices exist suggests that the Pi and Python are more than just "learning toys". Indeed there is a whole family of P...
by scotty101
Wed Dec 01, 2021 5:14 pm
Forum: Troubleshooting
Topic: Python GUI in raspberry pi is really slow
Replies: 5
Views: 337

Re: Python GUI in raspberry pi is really slow

I have a similar issue, and it occurs when I put a label creation inside a loop. I tried changing between tk and ttk with same results. Tk is slower, even I got a Pi freezes, had to turn off and go back again. Thanks in advance for your response. Thanks in advance for sharing your code so that some...
by scotty101
Wed Dec 01, 2021 4:14 pm
Forum: General
Topic: Pi Pico - Trying to clear terminal screen with printf
Replies: 7
Views: 308

Re: Pi Pico - Trying to clear terminal screen with printf

you know i'm interested in buying one this christmas; but I would like to know more about him; do you control it from windows? what windows program do you use? the communication is done by serial usb power? do you use c compiles with gcc? what is the file that makes the boot, are you the one who ch...
by scotty101
Wed Dec 01, 2021 10:20 am
Forum: MicroPython
Topic: Update the .uf2 file
Replies: 20
Views: 622

Re: Update the .uf2 file

You'll need to use "sudo rm" to delete these folders
by scotty101
Wed Dec 01, 2021 10:06 am
Forum: Automation, sensing and robotics
Topic: Production Line Counter
Replies: 4
Views: 328

Re: Production Line Counter

Where did you get that code example from? It looks like you've combined some python and C# stuff in the same code.
Also which one of the C# libraries are you using? Is it https://github.com/dotnet/iot ?
by scotty101
Tue Nov 30, 2021 10:59 am
Forum: Python
Topic: Problem in how Python script sends datas via Bluetooth
Replies: 4
Views: 285

Re: Problem in how Python script sends datas via Bluetooth

Rather than doing

Code: Select all

if data == 'q':
You could do

Code: Select all

if 'q' in data:
by scotty101
Sat Nov 27, 2021 6:56 pm
Forum: C/C++
Topic: tone() lib for the Pi?
Replies: 22
Views: 911

Re: tone() lib for the Pi?

If it can be done in Python, it can be done in C.

It is just a case of using PWM to send a variable frequency out of a GPIO pin.

The fact it hasn't been done (or readily available) doesn't mean it is complex.
by scotty101
Sat Nov 27, 2021 6:51 pm
Forum: Other projects
Topic: Excavator bucket position
Replies: 13
Views: 781

Re: Excavator bucket position

I would have thought that some absolute encoders on each joint of the arm and bucket would be a better idea. If you know the length of each arm and the angle at which each joint is, you can work out the position of the bucket. One of the recent Hacksmith videos with their Alien Powerloader used a si...
by scotty101
Wed Nov 24, 2021 3:52 pm
Forum: General discussion
Topic: Box-Mount Potentiometer
Replies: 2
Views: 97

Re: Box-Mount Potentiometer

Where in the world are you? This is a UK based site https://uk.rs-online.com/web/p/potentiometers/8427080 Here is a US based site. https://www.digikey.co.uk/en/products/detail/bourns-inc/3852A-282-103AL/1088602 Both are randomly selected so you'll need to pick on that matches your requirements in te...
by scotty101
Wed Nov 24, 2021 11:31 am
Forum: C/C++
Topic: tone() lib for the Pi?
Replies: 22
Views: 911

Re: tone() lib for the Pi?

dsyleixa123 wrote:
Wed Nov 24, 2021 11:18 am
thanks, but that is Python, isn't it? I mean of course C/C++ (here in this subforum).
Duh. Silly me. I guess you'll have to write one yourself.
by scotty101
Wed Nov 24, 2021 11:14 am
Forum: C/C++
Topic: tone() lib for the Pi?
Replies: 22
Views: 911

Re: tone() lib for the Pi?

There is the Tones and TonalBuzzer classes within GPIOZero

https://gpiozero.readthedocs.io/en/stab ... tones.html

Outputs sound from a GPIO Pin to a suitable buzzer
by scotty101
Wed Nov 24, 2021 10:36 am
Forum: General discussion
Topic: Permanent Connection to these right-angle pins
Replies: 10
Views: 406

Re: Permanent Connection to these right-angle pins

I would carefully remove the header and connect to the other end using wires soldered through the holes.

It is easy to remove the header pins if you cut the plastic between each pin and remove the pins individually with a soldering iron and solder sucker.
by scotty101
Tue Nov 23, 2021 12:16 pm
Forum: General discussion
Topic: Very Large-Format “Touch Board”
Replies: 3
Views: 181

Re: Very Large-Format “Touch Board”

I'd imagine that in the old days these were either membrane keyboards or resistive touch panels. Membrane keyboards are just a few layers of material with conductive tracks separated by a small gap. When the material is pressed, the conductive tracks touch and close the circuit like a switch. This i...
by scotty101
Tue Nov 23, 2021 12:02 pm
Forum: Automation, sensing and robotics
Topic: RPI Twin Motor Control GUI
Replies: 3
Views: 217

Re: RPI Twin Motor Control GUI

GUIZero is an extension to tkinter which is intended to make GUI creation easier for beginners. There is a tutorial https://projects.raspberrypi.org/en/projects/getting-started-with-guis and book https://magazines-attachments.raspberrypi.org/books/full_pdfs/000/000/037/original/000_guizero_DIGITAL.p...
by scotty101
Mon Nov 22, 2021 2:30 pm
Forum: Python
Topic: Serial input from another microcontroller
Replies: 3
Views: 194

Re: Serial input from another microcontroller

import serial ser = serial.Serial ("/dev/ttyAMA0", 9600) while True: received_data = ser.read() data_left = ser.inWaiting() received _data += ser.read(data_left) print (received_data) ser.write(received_data) To convert the received data from a string to a list of integers, you can do the...
by scotty101
Wed Nov 17, 2021 10:45 am
Forum: Beginners
Topic: Is it possible to take data via Lan from a given device to raspberry pi
Replies: 2
Views: 95

Re: Is it possible to take data via Lan from a given device to raspberry pi

AmeliaJames wrote:
Wed Nov 17, 2021 7:12 am
My interest is to share data via Lan from a device to raspberry pi. Is that possible?
Possible yes. You might get more detailed answers if you can let us know what type of device you want to get information from.
by scotty101
Tue Nov 16, 2021 3:39 pm
Forum: Automation, sensing and robotics
Topic: Production Line Counter
Replies: 4
Views: 328

Re: Production Line Counter

C# isn't a common language on the Pi but there are some third party libraries For example https://unosquare.github.io/raspberryio/ is the documentation for one such C# API. One of the examples is very similar to your python example using System; using Unosquare.RaspberryIO; using Unosquare.Raspberry...
by scotty101
Tue Nov 16, 2021 9:17 am
Forum: Troubleshooting
Topic: Writing on an lcd display gives problems to the program
Replies: 3
Views: 109

Re: Writing on an lcd display gives problems to the program

Consider using interrupts to monitor your GPIO pins rather than polling them within the while loop.

The gpiozero library is the "preferred" gpio library these days and makes it simple to call a function when the state of a GPIO changes.
by scotty101
Sun Nov 14, 2021 3:13 pm
Forum: Python
Topic: dynamic data into flask server
Replies: 1
Views: 150

Re: dynamic data into flask server

No python required for this just some HTML to be added to the header of your HTML code.

Code: Select all

<meta http-equiv="refresh" content="1">
This would refresh the page every 1 second. 60 would make it refresh every minute.
by scotty101
Sat Nov 13, 2021 7:13 pm
Forum: Off topic discussion
Topic: Controlling Power (12 VDC)
Replies: 14
Views: 573

Re: Controlling Power (12 VDC)

Sounds like a job for a 555 timer rather than a microcontroller or a Pi Use the pulsing signal from the indicators to trigger a monostable timer on a 555 that will remain high for one period of the lights blinking. The output can be used to drive a relay. When the indicators are turned off, the time...
by scotty101
Sat Nov 13, 2021 6:57 pm
Forum: Python
Topic: Viewing Python Service Output
Replies: 8
Views: 287

Re: Viewing Python Service Output

didn't want log files to build up logging package provides rotating logs, see RotatingFileHandler which limits size. Yep. This would be a good way to do it. You could also log to RAM rather than the SD card to prevent wearing out the SD card. You'll still be able to read the log file but it won't s...
by scotty101
Sat Nov 13, 2021 6:53 pm
Forum: HATs and other add-ons
Topic: SenseHAT + motion detector on GPIO.
Replies: 3
Views: 163

Re: SenseHAT + motion detector on GPIO.

(Doesn't the SenseHAT have a pass-through header giving you physical access to all the pins?) Kind of. The lower part of the header can be removed allowing it to be replaced with a longer pin version. I believe the Astro Pi units used a second HAT between the Pi and SenseHAT to add the extra featur...
by scotty101
Sat Nov 13, 2021 6:46 pm
Forum: Python
Topic: Python code analysis
Replies: 2
Views: 153

Re: Python code analysis

I'd use a decorator to wrap the functions.

The wrapping function would add the function name and arguments to the list
by scotty101
Sat Nov 13, 2021 6:42 pm
Forum: Raspberry Pi 400
Topic: Look what I just found on Aliexpress
Replies: 7
Views: 443

Re: Look what I just found on Aliexpress

Not similar at all.

This is a USB 3 hub with a keyboard and loads of peripheral connections, not a standalone computer.

Go to advanced search