Go to advanced search

by Parth1234
Mon Jan 20, 2020 5:01 pm
Forum: Off topic discussion
Topic: What the router does, data loss, or connects two networks, both of them work
Replies: 1
Views: 631

What the router does, data loss, or connects two networks, both of them work

I want to know something about the router how it works. A router is a networking device that forwards data packets between computer networks. such as a web page or email, is in the form of data packets What the router does, does it send data, or connects two networks, Does it do both works ? How doe...
by Parth1234
Fri Jan 10, 2020 12:45 am
Forum: General discussion
Topic: RTC Timekeeping Registers
Replies: 7
Views: 401

Re: RTC Timekeeping Registers

The data stored in the RTC is primarily BCD encoded so, to set the time 12:34:56, you would write ... 0x12 to register 0x02 (hours) 0x34 to register 0x01 (minutes) 0x56 to register 0x00 (seconds) Though one would commonly do that by writing 0x56, 0x34, 0x12 to the three consecutive registers starti...
by Parth1234
Wed Jan 08, 2020 11:52 am
Forum: General discussion
Topic: RTC Timekeeping Registers
Replies: 7
Views: 401

RTC Timekeeping Registers

I was reading the datasheet of RTC chip , I have some doubt in this figure 9 DS3231.jpg https://datasheets.maximintegrated.com/en/ds/DS3231.pdf I do not understand what value to set the register at starting. As it is seconds, its address is 0x 00, so what value should I set. the range in the datashe...
by Parth1234
Sun Oct 27, 2019 12:22 pm
Forum: General discussion
Topic: What is the speed of data transmission
Replies: 4
Views: 403

Re: What is the speed of data transmission

BTW, you can't read a k-type termocouple with a regular ADC (the voltages are too small). Use a dedicated amplifier like a MAX31855K. hi DougieLawson let's make it simple I think you have been worked with a MAX31855K. and you have also worked with raspberry pi 3. Now what happen Pi is communicating...
by Parth1234
Sun Oct 27, 2019 6:36 am
Forum: General discussion
Topic: What is the speed of data transmission
Replies: 4
Views: 403

What is the speed of data transmission

Hello

I have one doubt to calculate the speed of data transmission in project. For example I am taking the temperature of device using K type thermocouple , ADC ADS1115 and raspberry Pi 3

What would be the speed of data transmission between ads1115 and Pi3 ?
by Parth1234
Mon Feb 18, 2019 3:12 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

gordon77 wrote:
Sun Jan 20, 2019 3:29 pm
try this... saves 2 files called message1.txt and message2.txt, which are loaded at the start
Hello gordon77

I am planning to save the count of each day..

Code: Select all

import datetime;
ts = datetime.datetime.now().timestamp()
print(ts) 


How to save the count of each day. ?
by Parth1234
Wed Jan 30, 2019 12:23 pm
Forum: Python
Topic: need help to compare string
Replies: 2
Views: 243

need help to compare string

I need help to compare string Let's say I am getting string continousely from input input message may be following string = ";Day1=13/10/18;Day2=14= Shift;Time11=15:17;PRICE=10" strong = ";Day1=13/10/18;Day2=14=A;Time11=15:17;PRICE=10" #no change in strig string = ";Day1=14/10/18;Day2=14=A;Time11=15...
by Parth1234
Mon Jan 21, 2019 4:16 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

try this, hopefully count1 and count2 now fully configurable by the user. Thank you very, Nice work gordon77, I was searching on the internet to check internet status in gui Do you have any knowledge about it, Is it possible to get internet status weather it's connected or disconnected in gui ?
by Parth1234
Sun Jan 20, 2019 12:14 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

try this latest version, it will allow you to save a message for count1 and count2, and see them later. I wanted to store four string message, two for first project and other two for second message if user enter any message it should be store in string variable first save button save GPIO configura...
by Parth1234
Sun Jan 20, 2019 11:39 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

Works for me , what did you type ? because the script doesn't allow you to choose the current Count1 /2 you won't be able to see the message ! Maybe get resolved in future. I thought we can submit string message under counter 1 I am planning to submit three text message under project1 and project2 ...
by Parth1234
Sun Jan 20, 2019 11:15 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

gordon77 wrote:
Sun Jan 20, 2019 10:43 am
To change Count1 to GPIO 4..


Remember to move the wired input to GPIO4 !
thanks gordon77, Understood

why message I typed in the entry box doesn't store ?

How to submit text message under counter 1 and counter 2
by Parth1234
Sun Jan 20, 2019 10:38 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

Checks OK here. What H/L do you have set on Count1 GPIO ? The original needed None. I have modified the gpio_config.txt above. Hi gordon77 Only GPIO 12 and GPIO 16 are working If I set GPIO 4 input none any of them counter doesn't work suppose first i used GPIO 12 for counter 1 and later I want to ...
by Parth1234
Sun Jan 20, 2019 9:23 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

gordon77 wrote:
Sat Jan 19, 2019 5:19 pm
Click on IO#- or IO#+ to choose a GPIO pin
Then you can set GPIO to Input/Output/Count1/Count2 by clicking on I/O
and you can set High/Low or None by clicking on H/L

then press save.
Have you checked , counter 1 is not working ?

I have Pi3 model B
by Parth1234
Sat Jan 19, 2019 4:59 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

Please try the latest version l have posted above, it's fixed various issues. I have tried it There are few things, User can not set the output pin in GUI because you are making it input by default I was thinking to make GUI, where user can set pin numbering, input/ output pin and High/Low in GUI
by Parth1234
Sat Jan 19, 2019 12:22 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

This allows them to set the 2 counter pins, and allows you to block other pins if required... I have done few changes in script #!/usr/bin/python import tkinter as tk from urllib.request import urlopen import json import socket from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) g...
by Parth1234
Thu Jan 17, 2019 6:15 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

A few thoughts... If you want to list all available gpios then that is a long list. I think It would be better if we can allow user to set three things pin numbering input/output High/Low and save pin settings so user can change anything anytime Is it possible to do it in our script ? p3.jpg
by Parth1234
Thu Jan 17, 2019 5:43 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

gordon77 wrote:
Thu Jan 17, 2019 5:28 pm
Will it just display the settings, not allow the user to set them?
Allow user to set pin number

I think you understood what I want to do

If do you have any suggestion, please share

How would you like to make an application for user ?
by Parth1234
Thu Jan 17, 2019 4:12 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

This allows them to set the 2 counter pins, and allows you to block other pins if required... excellent help with code gordon77 i haven't tried script on my pi yet. I will try at home. I don't want to be more demanding because you have already helped me a lot with code found this link https://www.r...
by Parth1234
Thu Jan 17, 2019 2:40 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

gordon77 wrote:
Thu Jan 17, 2019 1:06 pm
what choices of configuration are you looking for, just GPIO # Number ?
I would like to set GPIO pin Numbering
like this
p3.jpg
p3.jpg (41.85 KiB) Viewed 1069 times
I thought It would be good for user who doesn't have technical knowledge.
by Parth1234
Thu Jan 17, 2019 12:45 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

gordon77 wrote:
Thu Jan 17, 2019 11:30 am
Can you explain "I am trying to make GUI for pin configuration after IOT project labels " more ?
I was asking how to make GUI to set GPIO configuration
by Parth1234
Thu Jan 17, 2019 11:25 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

Project 1 is now a counter, counting gpio #12. Clear will reset to 0 @ gordon77 thank you I have made second script I am trying to make GUI for pin configueation after IOT project lables It would be good, User can set i/o pin #!/usr/bin/python import tkinter as tk from urllib.request import urlopen...
by Parth1234
Wed Jan 16, 2019 2:22 pm
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

here's a start, you'll need to determine how to run your projects rather than just print It's good starting point thanks insted of print statement how to run below sample script import tkinter as tk from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) Counter_PIN = 12 GPIO.setup(Co...
by Parth1234
Wed Jan 16, 2019 10:44 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

Thanks scotty101 for your every help, I am not very good in english so language problem What do you mean by disabling/enabling projects? Does enabling a project run the python script in a subprocess that can then be killed when the project is disabled? yes exactly Does the python script run all the ...
by Parth1234
Tue Jan 15, 2019 10:37 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

What do you mean by disabling/enabling projects? Does enabling a project run the python script in a subprocess that can then be killed when the project is disabled? Does the python script run all the time but only do something when it has been enabled? Are the python scripts included in your main p...
by Parth1234
Tue Jan 15, 2019 9:58 am
Forum: General discussion
Topic: GUI to Run two programs
Replies: 46
Views: 3143

Re: GUI to Run two programs

I just want to give an option to user. if he want to use fire alarm then he should be able to disable water level indicator project. if he want to use water level indicator then he should be able to enable water level indicator project project.png import tkinter as tk class MainApplication(tk.Frame)...

Go to advanced search