RRRduino without crystal

•2017/06/06 • Comments Off on RRRduino without crystal

https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard

Arduino as ISP (after the Arduino UNO has been loaded with Examples->11.ArduioISP

Make sure the target has a why to run by itself with power and all ICSP pins are soldered.

Burn Bootloader on the correct COM.

Then use Uno without chip to Tx the real code in.

 

MQTT…

•2017/05/24 • Comments Off on MQTT…
sudo apt-get install mosquitto mosquitto-clients

mosquitto_pub -h 192.168.16.152 -t mast.0002 -r -m "Approach"     // -r for retain, -p 1883

mosquitto_sub -v -h 192.168.16.152 -t '#'          // -p 1883, subscribe to all
mast.0002 Approach

Upper to lowercase…in filenames…

•2017/02/25 • Comments Off on Upper to lowercase…in filenames…

Yes, I just don’t like external gadgets and very expensive drone cameras to save files as DJI_0717.MP4 … .mp4 is much easier on the eyes.

me@myPuter:~/myFolder$ rename 'y/A-Z/a-z/' *

OpenCV 3.1.0 installed in Ubuntu in 16.04.1 LTS

•2016/12/29 • Comments Off on OpenCV 3.1.0 installed in Ubuntu in 16.04.1 LTS

Could not do the same with OpenCV 3.2.0, but here is and excellent how to install 3.1.0, using python 3.5 in Ubuntu 16.04.1 LTS:

http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/

The compile part takes same time, so turn a movie on when you enter “make -j2”.

A note later why it is marked “trains”…

Dumb Arduino errors!

•2016/10/10 • Comments Off on Dumb Arduino errors!

irremote

“C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib –param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10612 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON ‘-DUSB_MANUFACTURER=”Arduino LLC”‘ ‘-DUSB_PRODUCT=”Arduino Zero”‘ “-IC:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/CMSIS/Include/” “-IC:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.0.0-atmel/Device/ATMEL/” “-IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.6\cores\arduino” “-IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.6\variants\arduino_zero” “-IC:\Users\user\Documents\Arduino\libraries\IRremote” “C:\Users\user\Documents\Arduino\libraries\IRremote\irISR.cpp” -o “C:\Users\user\AppData\Local\Temp\arduino_build_814138\libraries\IRremote\irISR.cpp.o”
C:\Users\user\Documents\Arduino\libraries\IRremote\irISR.cpp:18:5: error: expected constructor, destructor, or type conversion before ‘(‘ token

ISR (TIMER_INTR_NAME)

^

Using library IRremote at version 1.0 in folder: C:\Users\user\Documents\Arduino\libraries\IRremote
exit status 1
Error compiling for board Arduino/Genuino Zero (Programming Port).

Solution:

Yes, change the board to something different than Programming Port!

=======================================================

Ajax, at an interval at w3schools

•2016/08/11 • Comments Off on Ajax, at an interval at w3schools
<!DOCTYPE html>
<html>
<body>

<p id="demo">Let AJAX change this text.</p>

<button type="button" onclick="on()">Change Content</button>


// http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_asyncfalse

setInterval(function() { 
  var d = new Date().getSeconds();
  var xhttp = new XMLHttpRequest();

  xhttp.onreadystatechange = function() {
    if (xhttp.readyState == 4 && xhttp.status == 200) {
      document.getElementById("demo").innerHTML = xhttp.responseText + d.toString();
    }
  };
  xhttp.open("GET", "ajax_info.txt", true);
  xhttp.send();
}, 1000);//time in milliseconds 

function on() {
  var d = new Date().getSeconds();
  var xhttp = new XMLHttpRequest();

  xhttp.onreadystatechange = function() {
    if (xhttp.readyState == 4 && xhttp.status == 200) {
      document.getElementById("demo").innerHTML = xhttp.responseText + d.toString();
    }
  };
  xhttp.open("GET", "ajax_info.txt", true);
  xhttp.send();
};


</body>
</html>

Notes on LCC

•2016/08/10 • Comments Off on Notes on LCC
* gridconnect protocol, for our purposes sends the following for every packet over a serial-looking port (or tcp socket):
:X195B4631N0501010114F30001;
where colon and semicolon signal the packet beginning/end, X means extended frame identifier, 195B4631 is the identifier, N means normal data frame, and the data after that until the semicolon is the payload, up to 8 bytes. Btw This is an event report packet coming form node alias 0x631, the event id is in the payload.
IO-Board:
:X17050125N;
:X16101125N;
:X15011125N;
:X14804125N;
:X10700125N;
:X10701125N050101011804;
:X19100125N050101011804;
:X170503AEN;
:X161013AEN;
:X150113AEN;
:X19544125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X148043AEN;
:X19545125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X19100125N050101011804;
:X19545125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X19545125NFFFFFFFFFFFFFFFF;
:X19544125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C4125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X194C5125NFFFFFFFFFFFFFFFF;
:X107003AEN;
:X195B4125NFFFFFFFFFFFFFFFF;
2016.08.09:
Every LCC node has worldwide unique “default” event IDs. You can “read” it and also “overwrite” it. So a bad board’s event IDs can be written into its replacement’s event IDs.