From 46fee0d0e1cb79cbd8903f86b905d813045f7448 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 4 May 2018 16:48:40 +0200 Subject: [PATCH] more articles --- index.html | 40 ++++++++++++++++++++++++++++ posts/2014-02-13.01/article.html | 28 ++++++++++++++++++++ posts/2014-02-13.01/article.m4 | 15 +++++++++++ posts/2014-02-21.01/article.html | 22 ++++++++++++++++ posts/2014-02-21.01/article.m4 | 9 +++++++ posts/2014-03-09.01/article.html | 30 +++++++++++++++++++++ posts/2014-03-09.01/article.m4 | 17 ++++++++++++ posts/2014-03-11.01/article.html | 45 ++++++++++++++++++++++++++++++++ posts/2014-03-11.01/article.m4 | 32 +++++++++++++++++++++++ posts/2015-06-05.01/article.html | 20 ++++++++++++++ posts/2015-06-05.01/article.m4 | 7 +++++ toc.inc | 40 ++++++++++++++++++++++++++++ 12 files changed, 305 insertions(+) create mode 100644 posts/2014-02-13.01/article.html create mode 100644 posts/2014-02-13.01/article.m4 create mode 100644 posts/2014-02-21.01/article.html create mode 100644 posts/2014-02-21.01/article.m4 create mode 100644 posts/2014-03-09.01/article.html create mode 100644 posts/2014-03-09.01/article.m4 create mode 100644 posts/2014-03-11.01/article.html create mode 100644 posts/2014-03-11.01/article.m4 create mode 100644 posts/2015-06-05.01/article.html create mode 100644 posts/2015-06-05.01/article.m4 diff --git a/index.html b/index.html index 169d812..4c25cc7 100644 --- a/index.html +++ b/index.html @@ -46,6 +46,46 @@ And: yes, I know, this homepage is soooo ugly. I'm sorry, no CSS yet. +
  • +2015-06-05 -Tools for the Arduino Development
    + +
  • + + + + +
  • +2014-03-11 -Teensy meets "not so standard" UART configuration
    + +
  • + + + + +
  • +2014-03-09 -4 Channel MBus-connected Thermometer, Part 2
    + +
  • + + + + +
  • +2014-02-21 -4 Channel MBus-connected Thermometer, Part 1
    + +
  • + + + + +
  • +2014-02-13 -Another (better) MBus-Master, Part 6
    + +
  • + + + +
  • 2014-02-08 -Another (better) MBus-Master, Part 5
    diff --git a/posts/2014-02-13.01/article.html b/posts/2014-02-13.01/article.html new file mode 100644 index 0000000..cdd98df --- /dev/null +++ b/posts/2014-02-13.01/article.html @@ -0,0 +1,28 @@ + + + + + + + + Projects - just for fun + + + + +Here is a slightly fixed schematics, the sources of the firmware and the Eagle .sch-File ... + +main + +MeterBusPowerMaster-2014-02-13 + +The circuit requires two supply voltages: +5V (named so in the schematics) and +35V (named vcc in the schematics). + +Note, please: there is still no over current protection in the design. + +If you like to use this design for your own purposes, feel free (and maybe, you want to let me know, especially if you enhance the design somehow). But dont blame me if something goes wrong. This design is working successfully in my basement, but, as mentioned before, it has still no over current protection (so, avoid short cuts on the bus wires). Furthermore, I cant state whether it is fully complaint to EN 13757 standard or not. + + + + + diff --git a/posts/2014-02-13.01/article.m4 b/posts/2014-02-13.01/article.m4 new file mode 100644 index 0000000..41ed4b5 --- /dev/null +++ b/posts/2014-02-13.01/article.m4 @@ -0,0 +1,15 @@ +define(`TITLE', `Another (better) MBus-Master, Part 6') +define(`DATE', `2014-02-13') +define(`CONTENT', ` +Here is a slightly fixed schematics, the sources of the firmware and the Eagle .sch-File ... + +main + +MeterBusPowerMaster-2014-02-13 + +The circuit requires two supply voltages: +5V (named so in the schematics) and +35V (named vcc in the schematics). + +Note, please: there is still no over current protection in the design. + +If you like to use this design for your own purposes, feel free (and maybe, you want to let me know, especially if you enhance the design somehow). But don'`t blame me if something goes wrong. This design is working successfully in my basement, but, as mentioned before, it has still no over current protection (so, avoid short cuts on the bus wires). Furthermore, I can'`t state whether it is fully complaint to EN 13757 standard or not. +') \ No newline at end of file diff --git a/posts/2014-02-21.01/article.html b/posts/2014-02-21.01/article.html new file mode 100644 index 0000000..d3f7295 --- /dev/null +++ b/posts/2014-02-21.01/article.html @@ -0,0 +1,22 @@ + + + + + + + + Projects - just for fun + + + + +This is going to be a 4 channel MBus-connected thermometer: + +ThermometerPro + +Measurement side of thing is working already. An Analog Devices AD7190 is used as ADC, an Arduino-compatible Micro Pro serves as MCU. For the communication side a TSS721A is awaited. + + + + + diff --git a/posts/2014-02-21.01/article.m4 b/posts/2014-02-21.01/article.m4 new file mode 100644 index 0000000..7bfd786 --- /dev/null +++ b/posts/2014-02-21.01/article.m4 @@ -0,0 +1,9 @@ +define(`TITLE', `4 Channel MBus-connected Thermometer, Part 1') +define(`DATE', `2014-02-21') +define(`CONTENT', ` +This is going to be a 4 channel MBus-connected thermometer: + +ThermometerPro + +Measurement side of thing is working already. An Analog Devices AD7190 is used as ADC, an Arduino-compatible Micro Pro serves as MCU. For the communication side a TSS721A is awaited. +') \ No newline at end of file diff --git a/posts/2014-03-09.01/article.html b/posts/2014-03-09.01/article.html new file mode 100644 index 0000000..cfb7948 --- /dev/null +++ b/posts/2014-03-09.01/article.html @@ -0,0 +1,30 @@ + + + + + + + + Projects - just for fun + + + + +AVR-Arduino replaced by ARM-based Teensy, due to memory shortness: + +Foto 2 + +MBus-transceiver TSS721A in breadbroad setup with two opto-coupler, connected to the thermometer and to the lab MBus-master: + +Foto 1 + +Test setup with thermometer, MBus-transceiver and lab MBus-master (still open enclosure since over current protection is not yet available, just to not forget it ...): + +Foto 4 +And, yes, it works so far. Although it was a bit of a surprise to see the echo of any sent frame, however, the documentation revealed that this is actually a collision detection feature. + + + + + + diff --git a/posts/2014-03-09.01/article.m4 b/posts/2014-03-09.01/article.m4 new file mode 100644 index 0000000..b79e70b --- /dev/null +++ b/posts/2014-03-09.01/article.m4 @@ -0,0 +1,17 @@ +define(`TITLE', `4 Channel MBus-connected Thermometer, Part 2') +define(`DATE', `2014-03-09') +define(`CONTENT', ` +AVR-Arduino replaced by ARM-based Teensy, due to memory shortness: + +Foto 2 + +MBus-transceiver TSS721A in breadbroad setup with two opto-coupler, connected to the thermometer and to the lab MBus-master: + +Foto 1 + +Test setup with thermometer, MBus-transceiver and lab MBus-master (still open enclosure since over current protection is not yet available, just to not forget it ...): + +Foto 4 +And, yes, it works so far. Although it was a bit of a surprise to see the echo of any sent frame, however, the documentation revealed that this is actually a collision detection feature. + +') \ No newline at end of file diff --git a/posts/2014-03-11.01/article.html b/posts/2014-03-11.01/article.html new file mode 100644 index 0000000..249fb7e --- /dev/null +++ b/posts/2014-03-11.01/article.html @@ -0,0 +1,45 @@ + + + + + + + + Projects - just for fun + + + + +The people at https://www.pjrc.com/teensy/index.html did a really good job with the Arduino integration Teensyduino. Thank you very much indeed. + +Unfortunately they missed a feature which has been integrated in the Arduino library sometimes between version 1.0.5 and 1.5.2, dont know when exactly: advanced UART configuration. + +In the documentation of Serial.begin(...) you see the option to give a config argument, where in particular you can configure the frame length, the parity and the number of stop bits. + +While this is certainly not a very common feature, I need it in my MeterBus projects, since communication on the MeterBus is serial communication with an even parity enabled. + +So far I was too lazy to put the stuff into a library, but this is required to enable even parity: + +
    +  #include <mk20dx128.h>
    +
    +  // [...]
    +
    +  // this is the new Arduino way of setting parity
    +  //Serial3.begin(2400, SERIAL_8E1);
    +
    +  // this is the Teensy (Freescale K20) way:
    +  Serial3.begin(2400);
    +  UART2_C1 |= UART_C1_PE | UART_C1_M;
    +
    + +Find the documentation for the UARTx_C1 register on page pp. 1055-1056, cp. 45.3.3 of the Freescale K20 manual (find that one on the Teensy homepage at https://www.pjrc.com/teensy/datasheets.html). + +Note: it is not enough to enable parity (setting the bit UART_C1_PE, you also need to increase the frame length to 9 bit by setting bit UART_C1_M, since the frame length seems to include the parity bit. + +Right, this is a hack, and maybe the Teensy people will integrate it into the library the other day, but at least for the moment it works for me. + + + + + diff --git a/posts/2014-03-11.01/article.m4 b/posts/2014-03-11.01/article.m4 new file mode 100644 index 0000000..f3f497e --- /dev/null +++ b/posts/2014-03-11.01/article.m4 @@ -0,0 +1,32 @@ +define(`TITLE', `Teensy meets "not so standard" UART configuration') +define(`DATE', `2014-03-11') +define(`CONTENT', ` +The people at https://www.pjrc.com/teensy/index.html did a really good job with the Arduino integration Teensyduino. Thank you very much indeed. + +Unfortunately they missed a feature which has been integrated in the Arduino library sometimes between version 1.0.5 and 1.5.2, don'`t know when exactly: advanced UART configuration. + +In the documentation of Serial.begin(...) you see the option to give a config argument, where in particular you can configure the frame length, the parity and the number of stop bits. + +While this is certainly not a very common feature, I need it in my MeterBus projects, since communication on the MeterBus is serial communication with an even parity enabled. + +So far I was too lazy to put the stuff into a library, but this is required to enable even parity: + +
    +  #include <mk20dx128.h>
    +
    +  // [...]
    +
    +  // this is the new Arduino way of setting parity
    +  //Serial3.begin(2400, SERIAL_8E1);
    +
    +  // this is the Teensy (Freescale K20) way:
    +  Serial3.begin(2400);
    +  UART2_C1 |= UART_C1_PE | UART_C1_M;
    +
    + +Find the documentation for the UARTx_C1 register on page pp. 1055-1056, cp. 45.3.3 of the Freescale K20 manual (find that one on the Teensy homepage at https://www.pjrc.com/teensy/datasheets.html). + +Note: it is not enough to enable parity (setting the bit UART_C1_PE, you also need to increase the frame length to 9 bit by setting bit UART_C1_M, since the frame length seems to include the parity bit. + +Right, this is a hack, and maybe the Teensy people will integrate it into the library the other day, but at least for the moment it works for me. +') \ No newline at end of file diff --git a/posts/2015-06-05.01/article.html b/posts/2015-06-05.01/article.html new file mode 100644 index 0000000..f2dfbe2 --- /dev/null +++ b/posts/2015-06-05.01/article.html @@ -0,0 +1,20 @@ + + + + + + + + Projects - just for fun + + + + +Arduino Eclipse Plugin: http://www.baeyens.it/eclipse/ +Arduino Teensy Integration: http://www.pjrc.com/teensy/teensyduino.html +Arduino IDE: http://arduino.cc/en/Main/Software + + + + + diff --git a/posts/2015-06-05.01/article.m4 b/posts/2015-06-05.01/article.m4 new file mode 100644 index 0000000..96191be --- /dev/null +++ b/posts/2015-06-05.01/article.m4 @@ -0,0 +1,7 @@ +define(`TITLE', `Tools for the Arduino Development') +define(`DATE', `2015-06-05') +define(`CONTENT', ` +Arduino Eclipse Plugin: http://www.baeyens.it/eclipse/ +Arduino Teensy Integration: http://www.pjrc.com/teensy/teensyduino.html +Arduino IDE: http://arduino.cc/en/Main/Software +') \ No newline at end of file diff --git a/toc.inc b/toc.inc index 3075387..620e9b1 100644 --- a/toc.inc +++ b/toc.inc @@ -16,6 +16,46 @@ +
  • +2015-06-05 -Tools for the Arduino Development
    + +
  • + + + + +
  • +2014-03-11 -Teensy meets "not so standard" UART configuration
    + +
  • + + + + +
  • +2014-03-09 -4 Channel MBus-connected Thermometer, Part 2
    + +
  • + + + + +
  • +2014-02-21 -4 Channel MBus-connected Thermometer, Part 1
    + +
  • + + + + +
  • +2014-02-13 -Another (better) MBus-Master, Part 6
    + +
  • + + + +
  • 2014-02-08 -Another (better) MBus-Master, Part 5