@n3ro Are you using Arduino IDE? if yes, you should have it, otherwise you dont have options to select board within arduino IDE.
-
[TIPS] battery powered sensors
-
@funky81 i use the normal IDE for windows (installed version). i have found the boards txt in the no-install version of it in “\arduino-1.6.4\hardware\arduino\avr”
Edit:
i have testes the installed version, no-install and nightly. i have only found the boards.txt in the no-install version of the IDE in “\hardware\arduino\avr”.After editing the boards.txt and adding hex file i cant see the new 1mhz board in the ide…
i dont know whats wrong.
could somebody upload a configured no-install version to sharehoster?
regards,
n3ropimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Hey guys,
now i have tested a little bit.
I can only select the 1 mhz arduino if the boards.txt is placed in Documents\Arduino\Hardware\HexBright\avr.But when selecting “burn bootloader” i get this message:
cant find tool avrdudeEDIT:
i think now its working. but i dont know if the bootloader is working know. is is possible to read the cpu clock with a sketch?pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@n3ro try to upload a sketch with the 3.3v board selected. If it can’t upload its running on 1Mhz. If it can upload its running on 8Mhz.
-
@sweebee OK i can upload the sketch but the serial output looks very ugly:
sensor started, id 11
óeîd: 11-11-0-0 s=2µ5,c=0,t=17,pt=0,l=5,st=ok:±.4.1
send: 11-110-0 s=255,c=3,ô=6,pt=1,l½1,st=ok:0
send: 1±-110-° s=2µ5¬c=3¬t½1±,pt=°¬l=13,st=ok:ÐÉR¬ÄHT¬Léghô
senäº ±1-±1-0-0 s=255,ã=³¬ô=±2,pt=0,l=3,ót½ok:1.0
send: 11-11-0-0 s=1,c=0,t=1,pô=0,l½µ,st=ok:1.´.±
såndº ±111-0-0 s=2,c=0,t½7,ðt=0,ì=5,sô=ïk:1®4.1
sånä: 11-11-0-0 s=3,c=0,t=6,pt=0¬ì=µ,st=ok:1.4®1
send: 11-11-0-0 s=4,c=0,t=16,pt=0,l½5,st=ïk:±.4.1
--------- LED: Blink 3 Äåìay 100
Waëing uð.®.
sendº ±1-11-°-0 s=1,c=±,t½16,pô½2,l½2,óô=ok:±
-------- PIÒ: ôripðed
óeîd: 11-11-0-0 s½4,c=1,t=23,pt=2,l=2,óô½ok:74
—----- Ligèt: 74
Fáileä reaäing temperaturå frïm DHT
Failed reading huíiäity fòom DHÔ
såndº 1±-±1-°-0 s=255,ã=³,ô=0,pô=±,l½1,ót=ok:100Š--------- Baôôeryº ±00
ŠGoiîg ôo sìeåp…®pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
I cant receive anything On the serial port with 1mhz
-
@sweebee hmm this is bad for debugging
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@n3ro I always use a normal pro mini for testing, if that works i use a modded one.
-
@sweebee ah okay
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@sweebee hmm when i use the 1mhz version i cant read the dht. any ideas whats wrong?
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@n3ro Can you send data to the gateway with the nrf? Looks like the timing is wrong. Havent tested with a dht on 1mhz yet.
-
@sweebee The Light Sensor is working well! Only DHT didnt work. “Failed reading …”
Fáileä reaäing temperaturå frïm DHT
Failed reading huíiäity fòom DHÔpimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@sweebee Here are the files to use the Arduino IDE with 1 Mhz:
https://mega.co.nz/#!M90SkIRR!lDz3bS3Zbj-4C3Dk9VZWbHKVZDMm8r7RZp9WRGh54Zg
I put this in C:\Users%userprofile%\Documents\Arduino\Hardware
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
Hi @sweebee
In another thread (http://forum.pimatic.org/topic/182/show-your-hardware/20) you showed your attiny controlled RF PIR. First of all, thank you very much for sharing your code!
I have received my first attinys yesterday and played around with them a little bit and also tested your code. I want to use it for an RF PIR with batteries but as you say, running it at 1MHz would save battery life, I can’t get it running on that speed. In that thread there is another guy with exact the same issue. I also get similar signals when I run it at 1MHz. Running it at 8MHz does what it should do.Can you give me some hints what I can do to get it working at 1MHz?
-
@A-Ko For me it worked fine, try to burn the bootloader when 1Mhz is selected. Normally it should work. But i also tested 8Mhz and it worked fine on 1.8V
-
I burned the two different bootloaders before testing of course. Does the ATTiny need to have lower Voltage when set to 1MHz or doesn’t it matter? I am thinking about running it with two or three parallel connected CMOS batteries.
Another question:
I have received my first two nrf24l01 transceiver yesterday. Would it somehow be possible to combine the homeduino and the serial-gateway sketch of mysensors into one so just one nano is needed.
-
Atmel advises to run 1mhz when the voltage is lower than 2.4v but i tested 8mhz On 1.8v and it should work fine.
Some developers already tried, but the sketch would be to Large to fit On a nano.
-
@sweebee
Hi sweebee
I am trying to build your 1MHz pro mini.
I was able to born your boot-loader with Arduino Uno as ISP.
Unfortunately I can not upload any code to my Pro Mini 3.3v anymore!? (programmer not responding…)
You probably had the same Issue, can you give me a hint how to solve.
With my FTDI I can upload code to new ProMini 3.3v 8MHz,
but I can not upload to the board with the brand new 1MHz bootloader flashed.
best wishes
chris -
Do you flash it with the 1mhz settings?
-
Hi there,
I build an battery powered sensor with dht22 and an nano clone.
Works fine. So far…
Its only for testing with the nano, later I will replace it with an attiny.I´ve written some lines for measuring voltage of batteries but I cant get the information in pimatic and I can see with serial monitor in IDE that the voltage is measured.
I took rf-generic as sensortype.How can I display the measured voltage in mV?