Difference between revisions of "User:Djmaster"
m |
m |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[File:RJ45Buchse_Pinout.png|400px|thumb|RJ45 Buchse]] | + | [[File:RJ45Buchse_Pinout.png|400px|thumb|RJ45 Buchse]] |
+ | |||
+ | |||
+ | |||
==Person== | ==Person== | ||
− | |||
Nick im IRC: djmaster oder djmaster2<br> | Nick im IRC: djmaster oder djmaster2<br> | ||
Web: http://wiki.senseye.org/ | Web: http://wiki.senseye.org/ | ||
+ | |||
+ | == Wiki/Hoster Problem == | ||
+ | Fehler im Browser | ||
+ | Forbidden | ||
+ | You don't have permission to access /index.php on this server. | ||
+ | Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. | ||
+ | -->Support--> We have whitelisted the ModSecurity rule triggered for ethersex.de. | ||
==Bauteile== | ==Bauteile== | ||
Line 23: | Line 32: | ||
|- align="right" | |- align="right" | ||
| Hutschienen Gehäuse || Axxatronic || [http://www.axxatronic.de/serie-cnmb.html CNMB-4-KIT-CON] || Conrad || [http://www.conrad.at/ce/de/product/531443/Axxatronic-Hutschienen-Gehaeuse-CNMB-4-KIT-CON-Polycarbonat-L-x-B-x-H-90-x-710-x-58-mm 531443 - 62] || [http://www.axxatronic.de/serie-cnmb.html Link] || (L x B x H) 90 x 71.0 x 58 mm | | Hutschienen Gehäuse || Axxatronic || [http://www.axxatronic.de/serie-cnmb.html CNMB-4-KIT-CON] || Conrad || [http://www.conrad.at/ce/de/product/531443/Axxatronic-Hutschienen-Gehaeuse-CNMB-4-KIT-CON-Polycarbonat-L-x-B-x-H-90-x-710-x-58-mm 531443 - 62] || [http://www.axxatronic.de/serie-cnmb.html Link] || (L x B x H) 90 x 71.0 x 58 mm | ||
− | + | |- align="right" | |
+ | | DS2450 || Maxim || [http://www.maximintegrated.com/datasheet/index.mvp/id/2921 DS2450] || RS-Components || [http://at.rs-online.com/web/p/products/07327557/ 732-7557] || [http://datasheets.maximintegrated.com/en/ds/DS2450.pdf Link] || Onewire quad AD Converter | ||
+ | |- align="right" | ||
+ | | HIH4000-001 || Honeywell || [http://sensing.honeywell.com/product%20page?pr_id=53944 HIH4000-001] || RS-Components || [http://at.rs-online.com/web/p/products/05283171/ 528-3171] || [http://sensing.honeywell.com/product%20page?pr_id=53944 Link] || Luftfeuchte Sensor von Honeywell | ||
+ | |- align="right" | ||
+ | | MPXH6115AC6U || Freescale || xx || RS-Components || [http://at.rs-online.com/web/p/products/07176536/ 717-6536] || [http://www.freescale.com/files/sensors/doc/data_sheet/MPXA6115A.pdf Link] || Luftdruck Sensor von Freescale | ||
|} | |} | ||
==Die Software== | ==Die Software== | ||
− | + | [[File:Ethersex det ssr.png|400px|thumb|die Theorie]] | |
+ | [[File:Hausbus v1.JPG|400px|thumb|die Praxis]] | ||
===TFTP-Bootloader & Fuses=== | ===TFTP-Bootloader & Fuses=== | ||
Line 75: | Line 90: | ||
File:3_mosfets.jpg | File:3_mosfets.jpg | ||
File:4_schaltung_fet.png | File:4_schaltung_fet.png | ||
− | |||
− | |||
− | |||
− | |||
− | |||
File:IMG_5286.JPG | File:IMG_5286.JPG | ||
File:IMG_6592.JPG | File:IMG_6592.JPG | ||
File:IMG_6594.JPG | File:IMG_6594.JPG | ||
+ | File:S0-zaehler_img.JPG | ||
+ | File:Esex sensor1.JPG | ||
</gallery><br> | </gallery><br> | ||
− | |||
− | |||
==Probleme== | ==Probleme== | ||
Line 99: | Line 109: | ||
master Erik Kunze * ae3ef98 (2 files in 1 dirs): use timer makros for prescaler 64 (32768Hz/256/64=2Hz) - http://bit.ly/eG2d4c | master Erik Kunze * ae3ef98 (2 files in 1 dirs): use timer makros for prescaler 64 (32768Hz/256/64=2Hz) - http://bit.ly/eG2d4c | ||
--- DCF muss noch getestet werden | --- DCF muss noch getestet werden | ||
+ | |||
+ | ==Notizzettel== | ||
+ | |||
+ | schnell mal notiert ein script zum email versenden wenn zb..PIN_LOW... | ||
+ | |||
+ | |||
+ | <source lang="text"> | ||
+ | C6_HEADER(`/* This will be in control6.h */') | ||
+ | #include <util/delay.h> | ||
+ | CONTROL_START | ||
+ | CLOCK_USED() | ||
+ | ECMD_GLOBAL(t1, 0, uint16_t); | ||
+ | ECMD_GLOBAL(var1, 0); | ||
+ | ECMD_GLOBAL(var2, 0); | ||
+ | ECMD_GLOBAL(aqua_mail_sent, 0, uint8_t) | ||
+ | THREAD(start) | ||
+ | if (!PIN_HIGH(WTR)) t1++; | ||
+ | else t1=0; | ||
+ | if (t1 > 10) var1=1; | ||
+ | else var1 = 0; | ||
+ | if (t1 > 400) var2=1; | ||
+ | else var2 = 0; | ||
+ | if (var1 == 1) PIN_CLEAR(LED1); | ||
+ | else PIN_SET(LED1); | ||
+ | if (var2 == 1){ | ||
+ | if (aqua_mail_sent == 0){ | ||
+ | PIN_CLEAR(LED2); | ||
+ | mail_send(); | ||
+ | aqua_mail_sent = 1; | ||
+ | } | ||
+ | var2 = 0; | ||
+ | }else{ | ||
+ | PIN_SET(LED2); | ||
+ | } | ||
+ | THREAD_END(start) | ||
+ | ON STARTUP DO | ||
+ | THREAD_START(start) | ||
+ | END | ||
+ | CONTROL_END | ||
+ | </source> | ||
+ | |||
+ | ==Levelshifter 3.3V 5V== | ||
+ | <gallery perrow=1> | ||
+ | File:Levelshifter.png | ||
+ | </gallery><br> | ||
+ | |||
+ | Source: http://wiki.senseye.org/adir/levelshifter/levelshifter.sch |
Latest revision as of 18:35, 10 May 2018
Contents
Person
Nick im IRC: djmaster oder djmaster2
Web: http://wiki.senseye.org/
Wiki/Hoster Problem
Fehler im Browser
Forbidden You don't have permission to access /index.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. -->Support--> We have whitelisted the ModSecurity rule triggered for ethersex.de.
Bauteile
Für Etherrape Module
Die SoftwareTFTP-Bootloader & FusesMenuconfig: │ │ Load a Default Configuration ---> │ │ [*] Ethernet Bootloader │ │ Network ---> │ │ [*] Ethernet (ENC28J60) support ---> │ │ Etherrape IP address: "192.168.12.220" │ │ Netmask: "255.255.255.0" │ │ [*] UDP support │ │ [*] UDP broadcast support │ │ Applications ---> │ │ [*] TFTP support ---> │ │ Bootloader configuration ---> │ │ [*] TFTP-o-matic │ │ --- TFTP-o-matic configuration │ │ TFTP IP address: "192.168.12.120" │ │ TFTP image to load: "ethersex.bin" make clean && make --> ethersex.hex =======The ethersex project======== Compiled for: atmega644 at 20000000Hz Imagesize: 6064/65536 bytes (9.25%) [==----------------------------] Program (.text + .data) : 6064 bytes Data (.data + .bss) : 826 bytes =================================== sudo avrdude -cusbasp -pm644 -U lfuse:w:0xff:m -U hfuse:w:0xd8:m -U efuse:w:0xfc:m sudo avrdude -cusbasp -pm644 -U flash:w:ethersex.hex sudo avrdude -cusbasp -pm644 -U lock:w:0x0F:m Achtung bei den SMD Typen vom mega644, ich habe mega644P bekommen, wobei ich jetzt nicht weiß ob die SMD immer P Typen sind. Egal das Problem ist man sollte avrdude genau lesen und auch "-p m644p" anhängen da der P Type eine andere Signatur aufweist. Hat mich ne Stunde gekostet. ;)
BilderTestsystemProbleme25.1.2011 - ethersex mit m644 und 32khz uhrenquarz. <obiflix> du könntest https://github.com/ethersex/ethersex/commit/da511f074940423e8e8ef7ee67ca20e6d91f608c rückgängig machen <obiflix> möglicherweise bekommst du dann probleme mit dcf77, falls du das nutzen möchtest, aber einen versuch ist es wert ;) Notiz: Hat funktioniert für den MEGA644 Update#1 master Erik Kunze * ae3ef98 (2 files in 1 dirs): use timer makros for prescaler 64 (32768Hz/256/64=2Hz) - http://bit.ly/eG2d4c --- DCF muss noch getestet werden Notizzettelschnell mal notiert ein script zum email versenden wenn zb..PIN_LOW...
C6_HEADER(`/* This will be in control6.h */')
#include <util/delay.h>
CONTROL_START
CLOCK_USED()
ECMD_GLOBAL(t1, 0, uint16_t);
ECMD_GLOBAL(var1, 0);
ECMD_GLOBAL(var2, 0);
ECMD_GLOBAL(aqua_mail_sent, 0, uint8_t)
THREAD(start)
if (!PIN_HIGH(WTR)) t1++;
else t1=0;
if (t1 > 10) var1=1;
else var1 = 0;
if (t1 > 400) var2=1;
else var2 = 0;
if (var1 == 1) PIN_CLEAR(LED1);
else PIN_SET(LED1);
if (var2 == 1){
if (aqua_mail_sent == 0){
PIN_CLEAR(LED2);
mail_send();
aqua_mail_sent = 1;
}
var2 = 0;
}else{
PIN_SET(LED2);
}
THREAD_END(start)
ON STARTUP DO
THREAD_START(start)
END
CONTROL_END Levelshifter 3.3V 5VSource: http://wiki.senseye.org/adir/levelshifter/levelshifter.sch |