Go to advanced search

by scotty101
Sun Jun 21, 2020 8:54 am
Forum: Python
Topic: import librairy serial
Replies: 13
Views: 1491

Re: import librairy serial

DJ Taylor, what error message do you get?

How are you running the program?
by scotty101
Fri Jun 12, 2020 8:53 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [CLOSED]Broken CIS connector
Replies: 4
Views: 256

Re: Broken CIS connector

You're using an unofficial camera. There are no guarantees that it will work with the Pi.

Perhaps ask the seller for support.
by scotty101
Fri Jun 12, 2020 8:47 am
Forum: HATs and other add-ons
Topic: MotoZero testing
Replies: 3
Views: 261

Re: MotoZero testing

Your code doesn't actually contain any instructions to turn the motor on, it just configures the GPIO pins as an output, waits 5 seconds and then finishes. Have you tried using the GPIO.output command to turn on all the pins? Also regarding your soldering, difficult to tell with the top down view bu...
by scotty101
Fri Jun 12, 2020 8:44 am
Forum: Beginners
Topic: Website Dashboard for GPIO control
Replies: 4
Views: 193

Re: Website Dashboard for GPIO control

Domoticz can control GPIO pins and supports "Timers" or schedules
by scotty101
Fri Jun 12, 2020 8:23 am
Forum: Python
Topic: Write data just when the output changes
Replies: 25
Views: 849

Re: Write data just when the output changes

There is a line in the code that outputs the count before the GPIO pins are checked and the count is increased.
Shouldn't be difficult for you to remove that print statement.
by scotty101
Thu Jun 11, 2020 3:39 pm
Forum: Automation, sensing and robotics
Topic: H Bridge and motor control for multiple motors
Replies: 17
Views: 613

Re: H Bridge and motor control for multiple motors

You haven't mentioned what current your motors require so it is difficult to give an IC recommendation. You can get "darlington arrays" which are an IC package containing a number of "darlington pair" transistors which can be used to drive devices requiring 0.5A or 1.5A depending on the device. They...
by scotty101
Mon Jun 08, 2020 10:16 am
Forum: Gaming
Topic: How to make new ROM file
Replies: 4
Views: 422

Re: How to make new ROM file

You'll probably have more luck on a dedicated retro gaming forum rather than here.
by scotty101
Fri Jun 05, 2020 8:28 pm
Forum: Other projects
Topic: Where does motion store html files ?
Replies: 5
Views: 337

Re: Where does motion store html files ?

It's hard coded in the source code https://github.com/Motion-Project/motion/blob/0dc2ae9372cfd2705110ef25c8c85b246adb2dc6/src/webu_html.c I'm not sure I can facepalm hard enough to express my feelings about mixing code and HTML. How would you go about it then? I'm curious, as I've inherited an appl...
by scotty101
Fri Jun 05, 2020 9:44 am
Forum: Python
Topic: GUIzero - Help with creating radio buttons please
Replies: 3
Views: 220

Re: GUIzero - Help with creating radio buttons please

Welcome to the Raspberry Pi forums - Or maybe the ButtonGroup widget is what you need - https://lawsie.github.io/guizero/buttongroup/ Perhaps if you post your own code showing where you are stuck someone might be able to suggest how to fix it? ButtonGroup is likely to be the correct thing. There is...
by scotty101
Fri Jun 05, 2020 9:08 am
Forum: Other projects
Topic: Where does motion store html files ?
Replies: 5
Views: 337

Re: Where does motion store html files ?

DougieLawson wrote:
Thu Jun 04, 2020 2:17 pm
It's hard coded in the source code https://github.com/Motion-Project/motio ... ebu_html.c
I'm not sure I can facepalm hard enough to express my feelings about mixing code and HTML.
by scotty101
Fri Jun 05, 2020 8:59 am
Forum: Python
Topic: how to execute function after clic button
Replies: 1
Views: 119

Re: how to execute function after clic button

What happens when you run your code? Does it constantly stream "NOT pressed" to the console? I suspect you have your button connected to the wrong pins Your code says Button(15) which is BCM15 which is physical pin 10 which is used by the serial port. Your post says you are connecting to pin 1 and 3...
by scotty101
Fri Jun 05, 2020 8:25 am
Forum: Gaming
Topic: minecraft: can't get to python
Replies: 1
Views: 164

Re: minecraft: can't get to python

I think you press the Tab key to get the mouse out of the window.

Yep, confirmed by https://projects.raspberrypi.org/en/pro ... craft-pi/4
by scotty101
Fri Jun 05, 2020 8:18 am
Forum: HATs and other add-ons
Topic: Argon Fan HAT Accessory Button??
Replies: 2
Views: 278

Re: Argon Fan HAT Accessory Button??

I'm not familiar with that specific HAT but have similar devices. Yes a script needs to be running to control the fan, check the status of the buttons, issue shutdown commands etc. The Argon Fan product page doesn't give much detail but it suggests that running a script once will set all of this up....
by scotty101
Thu Jun 04, 2020 8:31 am
Forum: Automation, sensing and robotics
Topic: Keeping Neigbor's Cat Out, but NOT My Cats
Replies: 8
Views: 434

Re: Keeping Neigbor's Cat Out, but NOT My Cats

Computer vision is a difficult topic and you may struggle to get something to distinguish between cats, depending on how similar in appearance they are. Not a simple topic so you may have to do a lot of reading. TensorFlow and Machine Learning seem to be the latest craze in this area. You need to "t...
by scotty101
Wed Jun 03, 2020 10:18 am
Forum: Python
Topic: raspberry pi and python internet radio code
Replies: 2
Views: 228

Re: raspberry pi and python internet radio code

May I suggest that you use the python library mpd to control your radio rather than issuing commands via os.system.

https://python-mpd2.readthedocs.io/en/l ... arted.html
by scotty101
Wed Jun 03, 2020 8:59 am
Forum: Beginners
Topic: Question from a Semi-Beginner
Replies: 1
Views: 147

Re: Question from a Semi-Beginner

Definitely possible.

Don't expect blisteringly fast performance but it'll work.
by scotty101
Mon Jun 01, 2020 3:31 pm
Forum: Advanced users
Topic: What pins do touch monitors use?
Replies: 2
Views: 208

Re: What pins do touch monitors use?

The only way to be sure is to ask the manufacturer.

There are some clues though. It says that it is an SPI LCD therefore it will use the SPI pins (https://pinout.xyz/pinout/spi)
Which will likely leave pins 6,8 and 8 (GND, TXD and RXD) free to be used by you.
by scotty101
Mon Jun 01, 2020 9:13 am
Forum: General discussion
Topic: Python coding in Spyder 3
Replies: 5
Views: 252

Re: Python coding in Spyder 3

bruceblosser wrote:
Mon Jun 01, 2020 1:06 am
but It gets errors when I run the script in Spyder 3.

any thoughts about this?
Here are my thoughts
Thought 1: I wonder why the OP didn't share their code inside code tags.
Thought 2: I wonder why the OP didn't share the error messages they were getting so that people could help them.
by scotty101
Mon Jun 01, 2020 8:45 am
Forum: General discussion
Topic: Running two Python files in sequence
Replies: 2
Views: 204

Re: Running two Python files in sequence

Using os.system (or subprocess) to call a python program from another python program is rarely the correct solution. You should use import statements to include the code from "file2" so that "file1" can call the functions (or instantiate the classes). If you are able to share your code, a more detai...
by scotty101
Sat May 30, 2020 4:49 pm
Forum: Python
Topic: how to transfer data from sensor results to a text file
Replies: 5
Views: 359

Re: how to transfer data from sensor results to a text file

Yes. There is plenty of information out there for python regarding how to write to a text file. There is also the CSV module built in to python which makes writing this type of data relatively simple and in a human readable format. If you get stuck with trying to do this, post your code and someone ...
by scotty101
Fri May 29, 2020 8:57 am
Forum: Graphics, sound and multimedia
Topic: Controlling two Pi's for car entertainment
Replies: 1
Views: 159

Re: Controlling two Pi's for car entertainment

Many media players have a remote control function.
For example VLC has a web interface that you can use to control what is being played (https://wiki.videolan.org/Control_VLC_via_a_browser/)

Worth investigating a few different media players before trying to code your own.
by scotty101
Thu May 28, 2020 3:17 pm
Forum: General discussion
Topic: Why release an 8gb model without upgrading the processor?
Replies: 35
Views: 2471

Re: Why release an 8gb model without upgrading the processor?

8gb of ram is impressive but processor speed is important. If processor speed was unimportant then why on earth aren’t we still using computers from 20 years ago? To me upgrading the ram to 8gb but not improving the processor is akin to being told your car has as good quality parts as a Mercedes bu...
by scotty101
Thu May 28, 2020 10:44 am
Forum: Python
Topic: Help with PiCamera/Tkinter GUI
Replies: 9
Views: 432

Re: Changing AWB-Mode with a scale in Tkinter.

That's beyond my knowledge of the camera API. Hopefully someone else can help There is some info in the Advanced Recipes section of the documentation https://picamera.readthedocs.io/en/release-1.12/recipes2.html#custom-encoders The docs on the encoders does say "Most users will have no direct need t...
by scotty101
Thu May 28, 2020 9:18 am
Forum: Beginners
Topic: Controlling a recirculating pump
Replies: 2
Views: 169

Re: Controlling a recirculating pump

I'm not an expert, but I know there are special sprinklers with sensors and timers, I believe you may just buy one of them? Seconded. Yes this could be done with a Raspberry Pi but given that the pump is probably mains powered and certainly involves water, this is not something a hobbyist should do...
by scotty101
Wed May 27, 2020 4:00 pm
Forum: Automation, sensing and robotics
Topic: Voltage less when reading 4-20 mA sensor using ADS1115 and Pi
Replies: 10
Views: 528

Re: Voltage less when reading 4-20 mA sensor using ADS1115 and Pi

A circuit diagram would likely help to diagnose the issue.

Go to advanced search