Difference between revisions of "User:Djmaster"

From Ethersex_Wiki
Jump to: navigation, search
m
m
 
(6 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]]
[[File:Ethersex det ssr.png|400px|thumb|die Theorie]]
+
 
  
  
 
==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 36: Line 42:
  
 
==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 83: Line 90:
 
File:3_mosfets.jpg
 
File:3_mosfets.jpg
 
File:4_schaltung_fet.png
 
File:4_schaltung_fet.png
</gallery><br>
 
 
===Messstation===
 
 
<gallery perrow=7>
 
 
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:S0-zaehler_img.JPG
 +
File:Esex sensor1.JPG
 
</gallery><br>
 
</gallery><br>
  
Line 106: 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

RJ45 Buchse


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

Bauteil Hersteller HerstellerNr Lieferant Bestellnummer Dokumente Sonstiges
RJ45 Buchse TE Connectivity 6605424-1 RS-Components 615-4361 Link Netzwerkbuchse ohne LED, Verriegelung Unten
RJ45 Buchse TE Connectivity 5-6605308-1 RS-Components 615-4383 Link Netzwerkbuchse mit LED, Verriegelung Unten
RJ45 Buchse TE Connectivity 6605759-1 RS-Components 615-4399 Link Netzwerkbuchse ohne LED, Verriegelung Oben
RJ45 Buchse TE Connectivity 5-6605758-1 RS-Components 615-4412 Link Netzwerkbuchse mit LED, Verriegelung Oben
Hutschienen Gehäuse Axxatronic CNMB-4-KIT-CON Conrad 531443 - 62 Link (L x B x H) 90 x 71.0 x 58 mm
DS2450 Maxim DS2450 RS-Components 732-7557 Link Onewire quad AD Converter
HIH4000-001 Honeywell HIH4000-001 RS-Components 528-3171 Link Luftfeuchte Sensor von Honeywell
MPXH6115AC6U Freescale xx RS-Components 717-6536 Link Luftdruck Sensor von Freescale


Die Software

die Theorie
die Praxis

TFTP-Bootloader & Fuses

Menuconfig:

 │ │          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. ;)


Bilder

Testsystem


Probleme

25.1.2011 - ethersex mit m644 und 32khz uhrenquarz.
datenblatt mega644 seite 101 - http://www.atmel.com/dyn/resources/prod_documents/doc2593.pdf
services/clock/clock.c - zeile 64

<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
26.1.2011 - Problem sollte nun behoben sein, Danke an eku!

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

Notizzettel

schnell 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 5V


Source: http://wiki.senseye.org/adir/levelshifter/levelshifter.sch