Go to advanced search

by TamP
Thu Jan 14, 2021 1:16 pm
Forum: Beginners
Topic: Groups in Node Red
Replies: 4
Views: 88

Re: Groups in Node Red

It was using 1.0.6 but since updating to the latest version, the groups are now in the menu.
When I installed raspian the other day, I chose Node Red from the "Recommended Software" on the Pi.
I just assume that was the latest.

Thanks for the help
by TamP
Thu Jan 14, 2021 12:59 pm
Forum: Beginners
Topic: Groups in Node Red
Replies: 4
Views: 88

Re: Groups in Node Red

I am using 1.0.6
How do I update to the latest ?
by TamP
Thu Jan 14, 2021 12:46 pm
Forum: Beginners
Topic: Groups in Node Red
Replies: 4
Views: 88

Groups in Node Red

As a beginner to Node Red, I cannot find Groups in the menu
Any help appreciated
by TamP
Tue Jan 05, 2021 3:26 pm
Forum: Beginners
Topic: shutdown pi using putty on pc
Replies: 1
Views: 89

Re: shutdown pi using putty on pc

I was a bit hasty.
The answer was to add -batch to the command
by TamP
Tue Jan 05, 2021 3:18 pm
Forum: Beginners
Topic: shutdown pi using putty on pc
Replies: 1
Views: 89

shutdown pi using putty on pc

I use a python script on a PC to close down the Pi 4 This script works import os os.system('"C:\Program Files\PuTTY\plink.exe" -ssh pi@192.168.0.33 -pw mypassword sudo shutdown now') However I get the following Access granted. Press Return to continue Can I stop putty waiting for a response
by TamP
Sat Dec 19, 2020 11:28 am
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

Great
thanks
by TamP
Sat Dec 19, 2020 10:19 am
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

I did as suggested and looked at DHT22.py again I altered it to 17 also and It works great. One final thing though regarding the output of DHT22.py I don't know how to reduce the decimal places here at the print line print("{} {} {}".format(r, s.humidity(), s.temperature())) this is the ou...
by TamP
Fri Dec 18, 2020 7:36 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

I see what you mean. I will have a go.
At least now, I know everything is wired and working

Thanks again
by TamP
Fri Dec 18, 2020 7:20 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

I cannot thank you enough for your time and patience
It is now working
I had mistakenly taken the DHT22.py down from the link instead of DHT.py

You are a star :D
by TamP
Fri Dec 18, 2020 6:46 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

So sorry about that. It was the wrong screenshot earlier
Image

this after running ./DHT22.py 17
by TamP
Fri Dec 18, 2020 6:25 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

Did so but still getting this
Image
I also changed the sensor as I got 3 in a pack
by TamP
Fri Dec 18, 2020 6:15 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

No, where do I do that ?
In a terminal ?
by TamP
Fri Dec 18, 2020 6:06 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

as requested

Image
Image
Image
by TamP
Fri Dec 18, 2020 5:41 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

I tried as suggested moving to 17 (pin 11).
I then ran DHT22.py but it returns 999's and Zero's
by TamP
Fri Dec 18, 2020 4:49 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

Red to plus
Black in the middle
Brown to minus
by TamP
Fri Dec 18, 2020 4:36 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

Image

I have it set as per you diagram but still get the error
by TamP
Fri Dec 18, 2020 3:20 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

https://drive.google.com/file/d/1A--tQYbUKy4wzwOWiQbC6bkyVJxMKZ4M/view?usp=sharing The code is import Adafruit_DHT import time DHT_SENSOR = Adafruit_DHT.DHT22 DHT_PIN = 4 while True: humidity, temperature = Adafruit_DHT.read(DHT_SENSOR, DHT_PIN) if humidity is not None and temperature is not None: ...
by TamP
Fri Dec 18, 2020 2:51 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

Re: DHT22 basic setup

Thanks for that.
This is the kind of DHT22 I have, but I am not getting a reading
I have Red to Pin 1 and black to pin 4 (5v)
I then have a brown to pin 3 on the 3v side

Would this be correct ?
by TamP
Fri Dec 18, 2020 2:36 pm
Forum: Automation, sensing and robotics
Topic: DHT22 basic setup
Replies: 26
Views: 427

DHT22 basic setup

Can I connect the DHT22 direct to the pi4 without a breadboard ?

A complete beginner regarding sensors etc
by TamP
Tue Nov 24, 2020 10:30 am
Forum: General discussion
Topic: Turntable for camera
Replies: 6
Views: 239

Turntable for camera

I wonder if there is such a thing as a turntable for the Pi Camera that can be programmed
For instance, turn left 30%, pause, turn right 60% etc
by TamP
Thu Jul 30, 2020 7:46 am
Forum: Python
Topic: Viewing images in a loop
Replies: 3
Views: 418

Re: Viewing images in a loop

That piece of code is doing exactly what I wanted, thanks for that.
I was eventually hoping to display a folder full of images, which this code does.

Sorry for the delay in answering as I was away from home
All help greatly appreciated
by TamP
Sat Jul 25, 2020 6:05 pm
Forum: Python
Topic: Viewing images in a loop
Replies: 3
Views: 418

Viewing images in a loop

Can any one tell me what is wrong with this code I have 10 images in a folder numbered 1 to ten I want it to show an image then wait a second, and display the next image and so on. It does not show the image until the loop finishes from tkinter import * from PIL import ImageTk,Image import time root...
by TamP
Sun Jul 19, 2020 2:35 pm
Forum: Beginners
Topic: espeak on Pi 4 Raspian
Replies: 12
Views: 546

Re: espeak on Pi 4 Raspian

Thanks all, for your time and patience
I have manages to alter the voice like this
os.popen('espeak' + ' -ven-North "' + "Hello" + '" --stdout | aplay 2> /dev/null').read()
by TamP
Sun Jul 19, 2020 2:30 pm
Forum: Beginners
Topic: espeak on Pi 4 Raspian
Replies: 12
Views: 546

Re: espeak on Pi 4 Raspian

Thanks for that, but I was wondering what the syntax would be, to incorporate a language into a command like this

import os
speak = "Hello world"
os.popen('espeak "' + speak + '" --stdout | aplay 2> /dev/null').read()
by TamP
Sun Jul 19, 2020 2:06 pm
Forum: Beginners
Topic: espeak on Pi 4 Raspian
Replies: 12
Views: 546

Re: espeak on Pi 4 Raspian

import os
speak = "Hello world"
os.popen('espeak "' + speak + '" --stdout | aplay 2> /dev/null').read()

As this seems to work, I wonder how I could change the voice

Go to advanced search