Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Re: Unstable Connection ENC28J60 / HanRun HR911105A with Nano on: March 17, 2013, 01:25:15 pm
I managed to reduce the frequency of errors by optimizing memory usage (using tips found on this very forum), but still have connection issues (i.e. sometimes 2 days after restart, sometimes 3 weeks)
I now suspect a memory allocation issue somewhere in my code ...
2  Using Arduino / Networking, Protocols, and Devices / Re: Unstable Connection ENC28J60 / HanRun HR911105A with Nano on: January 31, 2013, 11:21:52 am
Hello,

Unfortunately, I get the same kind of errors, but often after several days which makes testing / debugging quite difficult
The first step I did to reduce the number of errors was to go from 3V3 to 5V alimentation as I noticed that my Nano copy was delivering a mere 3.1V wich was not sufficient

Still investigating ...
3  International / Français / Re: Prise radio commander par Arduino on: January 13, 2013, 03:48:13 pm
Potentiellement une bonne nouvelle, le protocole Everflourish (normalement la marque de tes prises) a apparemment déjà été analysé : http://hblok.net/blog/posts/2012/09/02/home-automation-on-433-92-mhz-with-arduino/
et il existe un bout de code (pas pour Arduino, mais ça doit pouvoir s'adapter au besoin) : http://developer.telldus.se/browser/telldus-core/service/ProtocolEverflourish.cpp

et effectivement, l'émetteur ressemble à du ASK ou OOK donc grande chance que ça soit compatible
4  International / Français / Re: Prise radio commander par Arduino on: January 13, 2013, 10:00:51 am
Hello,

Pour commencer :
1. quelle est la marque des prises (il existe déjà des librairies toutes faites pour un certain nombre de modèles; i.e. HomeEasy) ?
2. Quel est le type de modulation du couple émetteur / récepteur (OOK, ASK, GFSK ? ... tous ne sont pas compatibles entre eux). Si je ne dis pas de bêtises, le PT2262 est la partie encodeur et non émetteur (mais je peux dire des bêtises)
5  Using Arduino / Project Guidance / Re: Heating monitor / datalogger then controller. Which hardware? on: January 03, 2013, 10:20:06 am
You may want to go for a mega if you plan to monitor 10 rooms (a nano will not have enough pins for an Eth shield + sensors + i.e. a LCD screen)
Regarding the ethernet shield :
- Wiznet is "standard" and well documented
- ENC28J60 lib seems lighter in code space required (i.e. if you plan to use http + ntp) but memory management can be sometimes troubling (buffer management). Form factor is generally smaller

For the central tracking, I would suggest to log data to a RRD file through a collectd daemon : I've just done something similar here http://arduino.cc/forum/index.php/topic,140366.0.html (btw, my system is planned for 1 heater so the rest of the code may not be 100% useful to you)
6  Community / Exhibition / Gallery / The Sarduinostat : an automated & web based heater controller / thermostat on: January 02, 2013, 04:13:06 pm
Inspired by some nice (and well documented) projects found on the forum, I finally managed to release my first version of the Sarduinostat
(as you may have guessed, the project fits in a sardine / pilchard box)

Apart from being fully functionnal, the goal was to make it small enough to fit it in a sardine box (nicely painted by the way as it will be put on the wall)
I used mainly semi built parts (i.e. including required caps & resitors) to keep the project simple (no soldering required)
As it is my first real arduino project (and I am new to C), I suspect part of the code can be optimized / cleaned ...

Parts :
- a sardine box
- Arduino nano clone
- DS18B20 temperature sensor
- TM1638 based 8X Seven Segments Display
- ENC28J60 based ethernet card
- a server for some of the enhanced functionnalities (i.e. collectd monitoring, access to http services)
(less than 35€ if I did not make any mistake in calculations, all ordered from dx)


What it can already do
- activate / deactivate the heater through a relay
- multi-mode control : day, night, auto (program per 10 min step), off, force (force heating)
- general status on a visible 8 x 7 segments display or simple web page
- clear heating status through leds
- manageable through panel buttons or through http services
- dhcp / ntp enabled
- interface to collectd / RRD for constant temperature monitoring

What it may do in the future
- more (and cleaned) http services
- allow to change program through a web page
- manage a different program for each day of the week
- more functions through the included web page (I need to free some memory)

It will also look nicer than on the pictures once painted and the cable fitted inside. smiley-cool










Thanks to all people on the forum I've stolen code from smiley

Collectd snippet
Code:
LoadPlugin curl

<Plugin curl>
        <Page "thermostat">
        URL "http://thermos/status"
        <Match>
                Regex "Temperature : ([0-9]+)"
                DSType "GaugeLast"
                Type "temperature"
                Instance "Thermostat"
        </Match>
        <Match>
                Regex "Ref : ([0-9]+)"
                DSType "GaugeLast"
                Type "temperature"
                Instance "Reference"
        </Match>
        </Page>
</Plugin>


Server page snippet (jquery based page)
Code:
$('.thermos_button').click(function() {
      $.ajax({type:'GET',
              url:'http://thermos/'+this.id,
              success: function (resp) { alert(resp); }
      })

Code:
<iframe src="http://thermos" id="thermos_status" width=400 height=230 frameborder=0>Thermos status</iframe><br>
    Change mode to :
    <button id="?mode=DAY" class="thermos_button">Day</button>
    <button id="?mode=NIGHT" class="thermos_button">Night</button>
    <button id="?mode=AUTO" class="thermos_button">Auto</button>
    <button id="?mode=OFF" class="thermos_button">Off</button>
    <button id="?mode=FORCE" class="thermos_button">Force</button><br/>
    Day temp :
    <button id="?dtemp+" class="thermos_button">+</button>
    <button id="?dtemp-" class="thermos_button">-</button><br/>
    Night temp :
    <button id="?ntemp+" class="thermos_button">+</button>
    <button id="?ntemp-" class="thermos_button">-</button><br/>
7  Using Arduino / Interfacing w/ Software on the Computer / Re: Interfacing with python - problem for writing and reading on serial port on: October 16, 2012, 12:20:59 pm
Not 100% sure, but the magic may come from the
Code:
time.sleep(2)
command

See : http://www.arduino.cc/playground/interfacing/python
Pages: [1]