HardwareRaspberry Pi playfulness

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  ANT_THOMAS  
 To:  koswix     
39808.681 In reply to 39808.679 
(giggle)

I've been getting that lately every so often.
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
39808.682 In reply to 39808.680 
I wish I could use C# for this. It would make some ideas I've got much easier. Not sure how to do things in C++ yet.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.683 
This has turned out to be more complicated than I thought it would be. Getting there though. Made a muddle of methods doing all sorts which didn't work.

So I made a Boiler class instead. Much better. Took a while to work out how to pass the RF24Network object to it. Now I can do "boiler.TurnHeatingOn()" and "boiler.TurnHeatingOff()". And boiler.GetStatus to find if it's on or off.

At the mo it's just flashing the LED on my Uno, less heat coming from it than my boiler.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Chris (CHRISSS)     
39808.684 In reply to 39808.683 
Are you basically just asking the Arduino if the pin is High or Low?
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS     
39808.685 In reply to 39808.684 
Yup. The Pi sends a request message to the Arduino, the Arduino gets the current state of the pin (HIGH or LOW, which are just 1 or 0) and sends a message back.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Chris (CHRISSS)     
39808.686 In reply to 39808.685 
There is absolutely no checking to make sure things have actually turned on/off with mine. I'm making the dangerous assumption that things just work!
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS     
39808.687 In reply to 39808.686 
My switching code doesn't check if it has actually turned on. It does check the message has sent. It would be easy enough to check the pin gas actually changed though.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.688 
Timer override boost control done. Pretty easy. Overloaded method for TurnHeatingOn() that accepts an int for the duration. It sends the duration to the Arduino which turns off after x minutes (seconds for my LED test). Need to sort out the web interface for it now.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.689 
Relay test complete. Got my hot water turning itself on and off every 5 seconds. Not Bert useful. Now to get the Pi to control it.

The Arduino is dangling off a USB cable next to lots of hot wafer pipes. Gonna have to make sure it doesn't touch anything and short something. The relay with the 230V is in a box though.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Chris (CHRISSS)     
39808.690 In reply to 39808.689 
How does the hot water work? Is it set on a timer to come on in the morning and evening?
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS     
39808.691 In reply to 39808.690 
Not yet. I haven't got that far with it. It's currently just an override for the timer so I'll still have to use the timer to get it to come on at specific times. For now.

I tried using one of my Nanos to control the relay but it couldn't talk to my Pi with the rradio. Plugged into my Uno it's working fine.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS     
39808.692 In reply to 39808.690 
Or do you mean how does it work with the timer? We usually turn it on for a bit when we get in from work or set it to come on in morning if we know we'll need it.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.693 
I now have a web interface I can use to turn my heating and hot water on and off. Awesome. I can be really lazy now and just lay in bed to turn my heating on :D

It did seem really strange plugging my laptop into my heating system to debug it earlier.

Me
+1/1
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.694 
Ah, now that's interesting. The timer has 3 outputs for the 3 way valve. Heating On, Water On and Water Off. Instead of just changing the position if either is on or both on, it has to have a feed to Water Off if the water is off.

Now I can easily do that with the other position on the relay but my relay will be switching the water on cable when the timer will be telling it the water is off (or vice versa). Maybe it will work, not sure yet.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
39808.695 In reply to 39808.694 
Well it ain't pretty but this is what the web interface looks like at the mo. On/Off controls and remaining time left.

Me

Attachments:

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Chris (CHRISSS)     
39808.696 In reply to 39808.695 
Nice mountains.
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Peter (BOUGHTONP)     
39808.697 In reply to 39808.696 
Thanks. Would you like a squeeze?

Me
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Chris (CHRISSS)     
39808.698 In reply to 39808.697 
(hug)
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.699 
I've coded the graph into my Hub C++ program now and it is working much faster than the Python version in Apache. 

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
39808.700 
I've installed RetroPie on a second SD card for my Pi2 for some vintage gaming. So far had the most fun with Street Fighter 2.

Might get another controller for it. Currently using a 360 pad. Any recommendations for wired/less one?

And a wireless keyboard too cos a keyboard is needed for setting up some bits. Is it possible to have a keyboard with a receiver attached to 2 devices and switch between them?

Me
0/0
 Reply   Quote More 

Reply to All  
 

1–20  …  641–660  661–680  681–700  701–720  …  841–853

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats