Go to advanced search

by scotty101
Wed Jun 12, 2019 7:22 am
Forum: Python
Topic: How to change any value in python with an input
Replies: 15
Views: 433

Re: How to change any value in python with an input

Shaurya wrote:
Wed Jun 12, 2019 6:04 am
But then how will I change the value of x with inputs???????
If you look at gordon77's code example, the value of x is increased every time the GPIO.Input(29) is true. This is done by the line "x += 1" which means add 1 to the current value of x.
by scotty101
Thu Jun 06, 2019 10:38 am
Forum: Networking and servers
Topic: Connecting Smart TV to internet with RPi1 Model B
Replies: 8
Views: 306

Re: Connecting Smart TV to internet with RPi1 Model B

It's been covered before on here, you bridge the WiFi and Ethernet interfaces.

viewtopic.php?t=132674
by scotty101
Thu Jun 06, 2019 10:08 am
Forum: Other projects
Topic: How to internal website send command to terminal raspbian
Replies: 5
Views: 209

Re: How to internal website send command to terminal raspbian

Perhaps you could share your code? As an example, I created something a while back to send IR commands via a python script from a web page. This allowed me to control my TV from a web browser on my phone. https://github.com/scotty3785/pi_tv_remote It uses python-flask, a framework for creating dynam...
by scotty101
Wed Jun 05, 2019 10:08 am
Forum: Media centres
Topic: Noob advice needed
Replies: 3
Views: 249

Re: Noob advice needed

Garjen wrote:
Wed Jun 05, 2019 6:59 am
Bit worried about Kodi thought it was illigal?
Kodi is not illegal. It is Kodi Plugins that allow the free streaming of shows from subscription services that are legally questionable.

Buy a starter kit as you are likely to need some of the part in order to initially setup the Kodi box.
by scotty101
Tue Jun 04, 2019 2:29 pm
Forum: General discussion
Topic: Wordpress plugin
Replies: 3
Views: 104

Re: Wordpress plugin

What kind of plugin? What do you want it to do?
Generally you have an idea for a feature you'd like your web site have, realise that wordpress by default doesn't do it and search for a suitable plugin.
What feature do you want to add?
by scotty101
Tue Jun 04, 2019 12:16 pm
Forum: Camera board
Topic: Soldering camera cable
Replies: 1
Views: 108

Re: Soldering camera cable

I'd suspect you're likely to melt the plastic or lift the metal strips off the plastic well before any solder melts.

You could experiment with conductive adhesives or just buy a longer cable.
by scotty101
Tue Jun 04, 2019 10:43 am
Forum: Troubleshooting
Topic: how to read the data from the XML file in Raspberry Pi 3
Replies: 6
Views: 161

Re: how to read the data from the XML file in Raspberry Pi 3

PeterO wrote:
Tue Jun 04, 2019 9:54 am
Maybe read the other replies first ?
I did.. OP clearly didn't so I posted it again.
by scotty101
Tue Jun 04, 2019 9:46 am
Forum: General discussion
Topic: Self sailing boat
Replies: 9
Views: 288

Re: Self sailing boat

Thanks appreciate the reply very helpful as before I had no idea where to start How do you eat an elephant? One bite at a time. You have an ambitious project but no experience. In order to complete your project you're going to have to put your project aside for the moment and learn some skills. The...
by scotty101
Tue Jun 04, 2019 9:35 am
Forum: Troubleshooting
Topic: how to read the data from the XML file in Raspberry Pi 3
Replies: 6
Views: 161

Re: how to read the data from the XML file in Raspberry Pi 3

harishreddy wrote:
Tue Jun 04, 2019 7:40 am
Thank you for your reply,

Yes, i want C example
Let me google that for you
http://www.xmlsoft.org/examples/
by scotty101
Sat Jun 01, 2019 10:20 pm
Forum: Troubleshooting
Topic: BrightPi Schedule On/Off in Python?
Replies: 10
Views: 276

Re: BrightPi Schedule On/Off in Python?

Try the following import line

Code: Select all

from brightpi.brightpilib import *
As per the example of the Bright Pi GitHub https://github.com/PiSupply/Bright-Pi/b ... pi-test.py
by scotty101
Fri May 31, 2019 2:45 pm
Forum: General discussion
Topic: any plans to upgrade zero?
Replies: 7
Views: 290

Re: any plans to upgrade zero?

hello i am just asking if there are any plans to upgrade the Pi z to like a pi z+ giving it more ram and a better CPU but keeping the idea of it being small and cheap (cheap being like 10-15 USD) The Pi Zero form factor is reliant on the Package on Package System on Chip that only the older and slo...
by scotty101
Fri May 31, 2019 10:05 am
Forum: Python
Topic: Seeking assistance getting tKinter to play nice
Replies: 7
Views: 257

Re: Seeking assistance getting tKinter to play nice

Difficult to tell as you haven't shared a complete and executable example of your code. Can you create a smallish example of code that replicates the same fault?

Do you have a call to the tkinter mainloop method?
by scotty101
Thu May 30, 2019 4:45 pm
Forum: Troubleshooting
Topic: Got IndexError: list index out of range during output of internal ip addr
Replies: 4
Views: 111

Re: Got IndexError: list index out of range during output of internal ip addr

Can you share what output you get on the screen when you run "ip addr show eth0". The error suggests that what is being returned from the check_output command is not what you are expecting and that one of the lists is not long enough. For example, an IndexError will occur if you try to access elemen...
by scotty101
Thu May 30, 2019 12:35 pm
Forum: Advanced users
Topic: live system information on website
Replies: 1
Views: 145

Re: live system information on website

What did you try already?
Did you follow a tutorial? Which one?
by scotty101
Wed May 29, 2019 4:15 pm
Forum: Troubleshooting
Topic: Dynamic PID Temperature Controller Using Raspberry Pi 3 Model B and Arduino Nano
Replies: 3
Views: 271

Re: Dynamic PID Temperature Controller Using Raspberry Pi 3 Model B and Arduino Nano

and i'm assuming by giving advice on the arduino, you think its the 'correct' route to take in terms of design, i.e i shouldn't bother buying shields/chips that interface the raspberry pi? From looking at the code you have, it seems that you are only really using the Arduino as a way to connect to ...
by scotty101
Tue May 28, 2019 9:52 am
Forum: Python
Topic: python multiple threads.
Replies: 3
Views: 536

Re: python

There are mechanism.

With Linux being a multi-tasking OS, multiple programs can be run at once. This includes two python scripts
Also python supports threading and multiprocessing to allow multiple tasks to happen at 'the same time'.

Depending on your code, you'd pick one of these mechanism.
by scotty101
Tue May 28, 2019 9:20 am
Forum: Troubleshooting
Topic: Dynamic PID Temperature Controller Using Raspberry Pi 3 Model B and Arduino Nano
Replies: 3
Views: 271

Re: Dynamic PID Temperature Controller Using Raspberry Pi 3 Model B and Arduino Nano

You haven't shared any information about your Arduino code and how you communicate with it. It is possible to connect to an Arduino via it's serial port using python and send/receive information from it. Look at the pySerial library. The arduino is then coded to receive messages, process these and u...
by scotty101
Thu May 23, 2019 9:09 pm
Forum: Automation, sensing and robotics
Topic: need super small PIR sensor
Replies: 16
Views: 762

Re: need super small PIR sensor

You could try an IR proximity sensor instead.

There are some very small ones that are used instead mobile phones.
by scotty101
Thu May 23, 2019 7:36 am
Forum: Python
Topic: Tkinter GUI/alerts for GPIO input pins?
Replies: 3
Views: 255

Re: Tkinter GUI/alerts for GPIO input pins?

now I realize that these pins aren't for a RasPi 3B+ and they stop at 2B+. The pin layout hasn't changed between the 2B+ and 3B+.. The LED code is simple to use. You just create a new LED and use grid/pack layout to place it on the screen. newLED = LED(root,10) newLED.grid(row=0,column=0) The text ...
by scotty101
Thu May 23, 2019 6:46 am
Forum: Python
Topic: Tkinter GUI/alerts for GPIO input pins?
Replies: 3
Views: 255

Re: Tkinter GUI/alerts for GPIO input pins?

Can you be a bit more specific about what you are trying to do and what you are finding confusing? I wrote the code that you shared back when the Pi first came out on to the market so I dare say that there are different way to do things now and there are simpler libraries for reading gpio pins like ...
by scotty101
Thu May 23, 2019 6:42 am
Forum: Beginners
Topic: LOG1612-4 board with camera to attach to pi 3b+
Replies: 1
Views: 62

Re: LOG1612-4 board with camera to attach to pi 3b+

The Raspberry Pi has an dedicated camera connection port designed for the official Pi Camera (some clones work too).
It is very unlikely that you would be able to connect a random and unknown camera directly to the Pi.
by scotty101
Thu May 23, 2019 6:39 am
Forum: Troubleshooting
Topic: L298n frying my pi
Replies: 18
Views: 430

Re: L298n frying my pi

Can't tell anything from your picture. The forum doesn't support uploading even slightly large photos so may I suggest you upload some better quality pictures to something like imgur and share the link.
Also a list of how you have connected GPIO pins would be helpful
by scotty101
Tue May 21, 2019 12:39 pm
Forum: Astro Pi
Topic: Joystick registers double
Replies: 2
Views: 318

Re: Joystick registers double

I believe you can add a check to the callback function to tell whether the event was triggered by pressing the joystick or releasing it. According to the tutorial (https://projects.raspberrypi.org/en/projects/getting-started-with-the-sense-hat/10) def up(): if event.action == 'pressed': print("Press...
by scotty101
Tue May 21, 2019 8:59 am
Forum: Beginners
Topic: Drone Swarm
Replies: 8
Views: 380

Re: Drone Swarm

:shock: Wow! I don't mean to burst your bubble but this is a HUGE project and well beyond that can be simply described in a tutorial for beginners. This is the type of thing that a University research team will spent many years developing. How about you start with one drone and continue from there. ...
by scotty101
Mon May 20, 2019 1:44 pm
Forum: Automation, sensing and robotics
Topic: Volume Scale
Replies: 3
Views: 345

Re: Volume Scale

Sparkfun have some IR distance sensors that would be compatible with the Pi. They claim 5mm accuracy and are much cheaper than laser options (which sparkfun have some of too) https://www.sparkfun.com/products/14588 PiMoRoNi also have a time of flight sensor which is less accurate but comes with code...

Go to advanced search