Go to advanced search

by scotty101
Fri Feb 14, 2020 11:55 am
Forum: Beginners
Topic: Connect a momentary button using raspberry.
Replies: 6
Views: 146

Re: Connect a momentary button using raspberry.

NO - should be some GPIO? COM - should be GND? Correct. NO is normally open which mean that the contacts will be closed when the button is pressed NC means normally closed which is where the contacts are opened when the button is pressed. No resistor needed but I'd suggest enabling the pull up on t...
by scotty101
Wed Feb 12, 2020 2:03 pm
Forum: Troubleshooting
Topic: "module not installing" with raspberry pi 4
Replies: 1
Views: 48

Re: "module not installing" with raspberry pi 4

What command/action did you use to install the module? You need to do more than just download the zip. Also note the following from the Picotech website (https://www.picotech.com/downloads/linux) These are beta drivers. All driver features are available, but they may not work in all cases. This rele...
by scotty101
Wed Feb 12, 2020 8:18 am
Forum: General discussion
Topic: Circuits in space
Replies: 21
Views: 646

Re: Circuits in space

Hello there. What's the name of the project (the payload, not your code)? I am sorry for not answering, but I believe this is not the Astro-Pi program, it is a new program called COMPUTER by the University of Alabama at Huntsville, but you probably won't find any information on it. Then you'll prob...
by scotty101
Tue Feb 11, 2020 8:43 am
Forum: Python
Topic: Tap into browser elements - python3
Replies: 2
Views: 99

Re: Tap into browser elements - python3

Not a simple task.
If it is possible, you'd likely have to write a plugin for the browser.

Might be worth asking on one of the Chromium message boards to see if they can help. More their area of expertise than a raspberry pi forum.
by scotty101
Mon Feb 10, 2020 7:12 pm
Forum: Troubleshooting
Topic: Connecting a USB device by GND, VCC, RX,TX
Replies: 1
Views: 46

Re: Connecting a USB device by GND, VCC, RX,TX

The image you have shared appears to just be a USB cable without a second end.

To use a serial port you need a cable that has a USB to Serial adaptor connected to it.

Something like this
https://shop.pimoroni.com/products/usb- ... sole-cable
by scotty101
Mon Feb 10, 2020 11:47 am
Forum: Staffroom, classroom and projects
Topic: Project school motorcycle
Replies: 3
Views: 111

Re: Project school motorcycle

I need help with the programming. Which aspects of the programming? Is it the GSM module and sending an SMS part? The GPS part? The recording video? The detection of an accident? The webserver part? There are many different parts of your project and you haven't said which part you are stuck on. Tac...
by scotty101
Fri Feb 07, 2020 10:55 am
Forum: Beginners
Topic: Wiring inductive sensors in series
Replies: 38
Views: 687

Re: Wiring inductive sensors in series

Yes you'll need a seperate power supply to drive these. 12V DC should be sufficient. As for interfacing to the Pi, I'd recommend an Opto-Isolator for each sensor. Opto-isolators are basically a light and a light sensor in the same closed box. When the input is active (inductive sensor detects someth...
by scotty101
Fri Feb 07, 2020 10:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using gyroscope data to calculate rotation matrix
Replies: 1
Views: 111

Re: Using gyroscope data to calculate rotation matrix

RTIMU is the library used by the SenseHAT.
https://github.com/RPi-Distro/RTIMULib

There are a large number of academic papers out there explaining this process but I've never understood it either.
by scotty101
Fri Feb 07, 2020 10:43 am
Forum: Advanced users
Topic: Raspberry Pi 3 and GSM Module - Phone Number Verification
Replies: 8
Views: 232

Re: Raspberry Pi 3 and GSM Module - Phone Number Verification

You can call a number using the ATD command and the device will respond with either "OK" or one of a few error messages such as "NO ANSWER". Thanks, but if I call a number using the ATD command, the destination rings, right? Correct. The GSM module has no idea what a correct number looks like, that...
by scotty101
Thu Feb 06, 2020 5:31 pm
Forum: Advanced users
Topic: Raspberry Pi 3 and GSM Module - Phone Number Verification
Replies: 8
Views: 232

Re: Raspberry Pi 3 and GSM Module - Phone Number Verification

There isn't a command to tell you whether the phone number exists. You can call a number using the ATD command and the device will respond with either "OK" or one of a few error messages such as "NO ANSWER". If you dial an invalid number, one of these error messages will probably be output by the GS...
by scotty101
Thu Feb 06, 2020 5:04 pm
Forum: Beginners
Topic: Fitting a fan without using GPIO?
Replies: 20
Views: 407

Re: Fitting a fan without using GPIO?

Can I use any of those 4 pins at J14 PoE, behind the Ethernet port? No. Thanks for your reply. A simple answer. However, it now poses another question in my mind: Why not? Are these input or output jumpers? I'm tempted to put a tester on them - unless there is an official schematic for the Pi4? Che...
by scotty101
Tue Feb 04, 2020 6:00 pm
Forum: Python
Topic: Simplifying my code
Replies: 1
Views: 110

Re: Simplifying my code

Have a look at my post here https://www.raspberrypi.org/forums/viewtopic.php?f=67&t=263803#p1605458 The code shows how to create a selection of tkinter widgets (inclucing checkboxes) to control GPIO pins. It would be very easy to modify to only show the few GPIO pins that you are interested in. The ...
by scotty101
Tue Feb 04, 2020 10:15 am
Forum: Beginners
Topic: How do I control a linear actuator?
Replies: 7
Views: 157

Re: How do I control a linear actuator?

Some form of motor controller which is suitable for the linear actuator's motor.

Impossible to give more specific suggestions without any information about what current the linear actuator requires.
by scotty101
Mon Feb 03, 2020 8:07 am
Forum: Graphics programming
Topic: control tkinter gui using gpio rpi
Replies: 1
Views: 144

Re: control tkinter gui using gpio rpi

So I want to make a program using the gpio pins of the rpi. is it possible to control the gui using a button connected to the gpio? Is it possible? Yes it is. Below is some code I wrote ages ago to monitor/control GPIO pins using a tkinter gui. Probably still works. import sys if(sys.version_info[0...
by scotty101
Wed Jan 29, 2020 11:43 am
Forum: General discussion
Topic: Accelerometer coding question (for use as a physics tool)
Replies: 4
Views: 342

Re: Accelerometer coding question (for use as a physics tool)

Have a look at the RTIMU library. https://github.com/RPi-Distro/RTIMULib/blob/master/RTIMULib/IMUDrivers/RTIMU.cpp It is the same library used by the Raspberry Pi Sense hat for calculating pitch/roll etc from the sensors on the sense hat. That library should contain the mathematical transformations ...
by scotty101
Wed Jan 29, 2020 11:32 am
Forum: Networking and servers
Topic: Multiple webapps on the same Pi
Replies: 2
Views: 190

Re: Multiple webapps on the same Pi

You are looking for a webserver like apache/nginx etc.

That webserver will then redirect the user to the correct application. For example you might have webaddresses like

myserver.com/webapp1
mysever.com/webapp2
or
webapp2.myserver.com
by scotty101
Tue Jan 28, 2020 8:32 am
Forum: HATs and other add-ons
Topic: Tv hat receiver
Replies: 3
Views: 329

Re: Tv hat receiver

Do you mean an aerial to receive the broadcast digital TV signal? Any off the shelf indoor antenna will work (signal strength dependant) you'll just need to direct it towards your nearest transmitter. You can usually tell which way to point the antenna by looking the the aerials on other people's ro...
by scotty101
Tue Jan 28, 2020 8:28 am
Forum: Beginners
Topic: Controlling python robot over network long button press
Replies: 6
Views: 151

Re: Controlling python robot over network long button press

Have a look at my pi_tv_remote example. (Developed to send IR signals from my Pi to a TV but I did create something based on this to control a robot) https://github.com/scotty3785/pi_tv_remote/blob/master/templates/remote.html This is the template for a flask project. It uses javascript to send comm...
by scotty101
Tue Jan 28, 2020 8:24 am
Forum: Python
Topic: Open or create a new file
Replies: 1
Views: 154

Re: Open or create a new file

Code: Select all

with open('myfile.txt','a') as newFile:
    newFile.write("Hello World!\n")
Simple. And well documented on the python website
https://docs.python.org/3/tutorial/inpu ... ting-files
by scotty101
Tue Jan 28, 2020 8:11 am
Forum: Advanced users
Topic: Run python scripts using mobile app
Replies: 2
Views: 164

Re: Run python scripts using mobile app

I've been using the "RasPi Check" app for years now to monitor the status of my Home Automation pi and to run a small number of scripts (Start/Stop/Restart services, check logs) and it works perfectly.
Each script that I want to run is a "Command" that I enter in to the app.
by scotty101
Mon Jan 27, 2020 5:29 pm
Forum: Beginners
Topic: Controlling python robot over network long button press
Replies: 6
Views: 151

Re: Controlling python robot over network long button press

Flask is not good (for this) https://stackoverflow.com/questions/42601478/flask-calling-python-function-on-button-onclick-event PHP is close with exec command to run python The best way to do this though i think is with AJAX , it looks like the website side of things and were it runs from is what i...
by scotty101
Wed Jan 22, 2020 4:57 pm
Forum: Gaming
Topic: How do I create game for the Raspberry Pi?
Replies: 29
Views: 1198

Re: How do I create game for the Raspberry Pi?

Can I use the Python resources on Raspbian to code one of the games on “Code The Classics”? The "Code the Classics" book is written to work on multiple platforms. Given that the book was published by "Raspberry Pi Press" it is safe to assume that the games will work on the Raspberry Pi. Refer to pa...
by scotty101
Wed Jan 22, 2020 12:08 pm
Forum: General discussion
Topic: Making a CCTV system for our home away from home
Replies: 1
Views: 323

Re: Making a CCTV system for our home away from home

MotionPiOS can handle multiple cameras and multiple Pi's.

See the "Multiple devices with hub" section on this page https://github.com/ccrisan/motioneyeos/ ... -Scenarios
by scotty101
Wed Jan 22, 2020 11:36 am
Forum: Gaming
Topic: How do I create game for the Raspberry Pi?
Replies: 29
Views: 1198

Re: How do I create game for the Raspberry Pi?

I mean do the games work if I put one on a Micro SD card and put it into the pi? The Micro SD card for the Pi is like a hard drive for a normal computer. When you buy a Pi and a new mSD card, you need to load an operating system on to it. Typically this will be Raspbian (available on the download s...
by scotty101
Thu Jan 16, 2020 10:14 pm
Forum: Python
Topic: Need help building a database to read data for test project
Replies: 1
Views: 132

Re: Need help building a database to read data for test project

Try this tutorial.

https://www.sqlitetutorial.net/sqlite-python/

SQLite is a simple database but powerful enough for most hobby applications and many professional one too.

Go to advanced search