<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.randomdata.nl/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=M10</id>
	<title>Randomdata wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randomdata.nl/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=M10"/>
	<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/wiki/Special:Contributions/M10"/>
	<updated>2026-04-13T15:10:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.randomdata.nl/w/index.php?title=Projects&amp;diff=6722</id>
		<title>Projects</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/w/index.php?title=Projects&amp;diff=6722"/>
		<updated>2025-08-20T11:16:18Z</updated>

		<summary type="html">&lt;p&gt;M10: /* Randomdata Projects - 2025 */  added bus displays project&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Randomdata Projects - 2025 ==&lt;br /&gt;
&lt;br /&gt;
*[[The Mechanical Turk]]&lt;br /&gt;
* [[Meshtastic]]&lt;br /&gt;
* [[Randomdata chatbot]]&lt;br /&gt;
* [[Bus Displays]]&lt;br /&gt;
&lt;br /&gt;
== Randomdata Projects - legacy==&lt;br /&gt;
*[[0xchristmas]]&lt;br /&gt;
*[[0xc0ffee controler]]&lt;br /&gt;
*[[Arduino]]&lt;br /&gt;
*[[Adruino_14_segment_LED_board]]&lt;br /&gt;
*[[bArduino]]&lt;br /&gt;
*[[Beerduino]]&lt;br /&gt;
*[[Bio Sensors]]&lt;br /&gt;
*[[Digital Testament]]&lt;br /&gt;
*[[DYHAMD]]&lt;br /&gt;
*[[ESP8266]]&lt;br /&gt;
*[[ESP32]]&lt;br /&gt;
*[[Fish_Lamp]]&lt;br /&gt;
*[[Fumefilter]]&lt;br /&gt;
*[[Gemknight]]&lt;br /&gt;
*[[GSMdecryption]]&lt;br /&gt;
*[[Helios]]&lt;br /&gt;
*[[HITR2NDB]]&lt;br /&gt;
*[[LedClock]]&lt;br /&gt;
*[[Micro brother]]&lt;br /&gt;
*[[Mendel90]]&lt;br /&gt;
*[[Multitouch]]&lt;br /&gt;
*[[Napkinholder]]&lt;br /&gt;
*[[RaDD]] RandomData Drone&lt;br /&gt;
*[[RandomKey]]&lt;br /&gt;
*[[RCstats]]&lt;br /&gt;
*[[Secnerve]]&lt;br /&gt;
*[[Spacebot]]&lt;br /&gt;
*[[Space-Network]]&lt;br /&gt;
*[[RIPE aTTYlas]]&lt;br /&gt;
*[[RunboData UHF transmitter]]&lt;br /&gt;
*[[RDSSPS]] RandomData Self Supporting Power System&lt;br /&gt;
*[[Virtual computing space]]&lt;br /&gt;
*[[Wallboard 2.0]]&lt;br /&gt;
&lt;br /&gt;
==Reverse enginering==&lt;br /&gt;
*[[Reverse engineering ZIOVA CS615]]&lt;br /&gt;
*[[Reverse engineering ELRO HA51 wireless]]&lt;br /&gt;
*[[Reverse engineering ELRO Flamingo HA31 wireless alarm]]&lt;br /&gt;
*[[Reverse engineering ELRO DB280 Doorbel]]&lt;br /&gt;
*[[ViVOpay 3000]]&lt;br /&gt;
*[[Wallboard]]&lt;br /&gt;
&lt;br /&gt;
== DIY Projects ==&lt;br /&gt;
*[[Great poormans_condenser microphone]]&lt;br /&gt;
*Getting the 3g module [[HP_un2400]] (Qualcomm Gobi) to work with Win7 and Linux&lt;br /&gt;
*Opening up the [[Kreatel]] 1760 IPTV settop box&lt;br /&gt;
*Build a nice lamp called &#039;[[Sfeer]]&#039;&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
*[[Samenkopen]] for buying stuff together&lt;br /&gt;
*[[BuyersGuide]] describes experiences with buying stuff and possible associated costs&lt;br /&gt;
&lt;br /&gt;
==Just a list of idea&#039;s we want to work on==&lt;br /&gt;
&#039;&#039;please help us by adding idea&#039;s to this list&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Hackers movie night (once a month?)&lt;br /&gt;
*Wireless hacking:&lt;br /&gt;
**Tweaking AP&#039;s&lt;br /&gt;
**DIY antenna&#039;s&lt;br /&gt;
**RFID&lt;br /&gt;
*WEBby&lt;br /&gt;
**Is your site safe? (&amp;amp;howto test)&lt;br /&gt;
**What is that cool thing you do on your site?&lt;br /&gt;
**Self defending websites (make an POC)&lt;br /&gt;
*Hardware hacking&lt;br /&gt;
**Use that soldering iron!&lt;br /&gt;
**Digital stuff&lt;br /&gt;
**[[Arduino]]&lt;br /&gt;
**Homeautomation&lt;br /&gt;
*Darknet&lt;br /&gt;
&lt;br /&gt;
== Randomdata retired Projects==&lt;br /&gt;
*[[ANTOR]]&lt;br /&gt;
*[[KiteCam]]&lt;br /&gt;
*[[LED board]]&lt;br /&gt;
*[[NSLU2]]&lt;/div&gt;</summary>
		<author><name>M10</name></author>
	</entry>
	<entry>
		<id>https://wiki.randomdata.nl/w/index.php?title=Bus_Displays&amp;diff=6721</id>
		<title>Bus Displays</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/w/index.php?title=Bus_Displays&amp;diff=6721"/>
		<updated>2025-08-20T11:15:35Z</updated>

		<summary type="html">&lt;p&gt;M10: init bus display page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In august 2025 we acquired bus displays that were used on the Utrecht public transport.&lt;br /&gt;
&lt;br /&gt;
One set consists of a controller, a small display for the line number, and two big displays&lt;br /&gt;
that sit in the front and the side of the bus which display line number and destination text.&lt;br /&gt;
&lt;br /&gt;
more info to follow...&lt;/div&gt;</summary>
		<author><name>M10</name></author>
	</entry>
	<entry>
		<id>https://wiki.randomdata.nl/w/index.php?title=Meshtastic&amp;diff=6701</id>
		<title>Meshtastic</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/w/index.php?title=Meshtastic&amp;diff=6701"/>
		<updated>2025-06-07T10:31:52Z</updated>

		<summary type="html">&lt;p&gt;M10: goal build environment&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Meshtastic is an open-source project that enables long-range, off-grid communication using affordable LoRa radios. Whether you&#039;re hiking in remote areas, preparing for emergencies, or building mesh networks for community or event use, Meshtastic provides a powerful, flexible solution without relying on cellular networks or the internet.&lt;br /&gt;
&lt;br /&gt;
=== Goals ===&lt;br /&gt;
&lt;br /&gt;
* Create coverage within Utrecht&lt;br /&gt;
* Create structure within our area&lt;br /&gt;
* Create our own hardware etc&lt;br /&gt;
* Create a build environment that is welcoming for new hardware and avoids bigTech tools&lt;br /&gt;
&lt;br /&gt;
=== Inital settings ===&lt;br /&gt;
&lt;br /&gt;
* EU868 - Longrange - fast&lt;br /&gt;
* Number of HOPS: 4&lt;br /&gt;
* Crypto? @TBD&lt;br /&gt;
&lt;br /&gt;
=== Supporting nodes and specs ===&lt;br /&gt;
&lt;br /&gt;
* Randomdata space - HELTEC LoRa 32 V3 - https://www.openstreetmap.org/#map=19/52.076054/5.106660&lt;br /&gt;
* Nieuwegein Galecop - HELTEC LoRa 32 V3 - https://www.openstreetmap.org/#map=19/52.053537/5.081138&lt;/div&gt;</summary>
		<author><name>M10</name></author>
	</entry>
	<entry>
		<id>https://wiki.randomdata.nl/w/index.php?title=Main_Page&amp;diff=6690</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/w/index.php?title=Main_Page&amp;diff=6690"/>
		<updated>2025-03-30T15:43:47Z</updated>

		<summary type="html">&lt;p&gt;M10: typos fixed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
=Welcome to Randomdata=&lt;br /&gt;
This wiki has been created for the members of Randomdata to leave information, start-up &amp;amp; maintain projects, random spam, etc. It&#039;s an old restore so check the date of the pages.&amp;lt;br&amp;gt;&lt;br /&gt;
Feel free to leave, create, modify, etc any page. This is a wiki! :D&lt;br /&gt;
&lt;br /&gt;
=News=&lt;br /&gt;
==A tribute to our legacy==&lt;br /&gt;
We started a museum page to cover our [[legacy]]&lt;br /&gt;
==Internationale Open Hackerspace Dag 2025==&lt;br /&gt;
On Saturday, March 29, hackerspaces across the Netherlands are opening their doors to the public – and of course, Randomdata is joining in!&lt;br /&gt;
&lt;br /&gt;
A hackerspace is a creative and technical playground where curious minds come together to build projects, share knowledge, and explore new ideas. During this national open day, you’ll get a chance to experience what hacking really means and see firsthand what’s possible in a hackerspace. Hint: the only real limit is your imagination.&lt;br /&gt;
&lt;br /&gt;
Everyone is welcome!** Doors open at &#039;&#039;&#039;11:00 AM&#039;&#039;&#039;, and the daytime program runs until &#039;&#039;&#039;5:00 PM&#039;&#039;&#039;. Some hackerspaces – including Randomdata – may remain open into the evening for extended activities. More information on [https://hackerspaces.nl/open-dag/]&lt;br /&gt;
&lt;br /&gt;
===What to Expect===&lt;br /&gt;
&lt;br /&gt;
Here’s a sneak peek at some of the activities:&lt;br /&gt;
* Socialize with the friends of Randomdata&lt;br /&gt;
* Learn how vulnerable systems can be, and how to secure them  &lt;br /&gt;
* Get practical tips on protecting your privacy and personal data  &lt;br /&gt;
* Try your hand at 3D printing** or soldering   &lt;br /&gt;
* Explore Electronics, compute power or Raspberry Pi basics  &lt;br /&gt;
&lt;br /&gt;
Hackers place high value on ethics. At hackerspaces, people talk about how we can improve the world by looking critically – and creatively – at technology, society, and organizations, and by sharing knowledge freely. It’s also simply a fun, welcoming (s)p(l)ace.&lt;br /&gt;
&lt;br /&gt;
More information on the [[Opendag2025]] page.&lt;br /&gt;
&lt;br /&gt;
=The space location=&lt;br /&gt;
The space is located at the shared office space in Europalaan 2 also called &amp;quot;De Alchemist&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If the door isn&#039;t open, you can try calling the space telephone (+31 6 5130 2847) to ask if someone can open the door or use the dial panel.&lt;br /&gt;
&lt;br /&gt;
There is free parking available at the space, but you have to ask us so we can tell you where :-)&lt;br /&gt;
&lt;br /&gt;
=Contact information=&lt;br /&gt;
Here you can find our contact details, the higher up in this list the more frequently the communication channel is used by the community!&lt;br /&gt;
&lt;br /&gt;
== Signal ==&lt;br /&gt;
There is a online community for Randomdata where we share announcement and make plans for future events, such as WHY2025!  &lt;br /&gt;
&lt;br /&gt;
To gain access to the community/channels.... come to the space  &lt;br /&gt;
&lt;br /&gt;
We used Whaaztzzzaaaaapp but because of privacy issues we moved to Signal  &lt;br /&gt;
&lt;br /&gt;
== Chat ==&lt;br /&gt;
We have our own chat server, in our signal channel you can get access to create a user.&lt;br /&gt;
&lt;br /&gt;
==== Past ====&lt;br /&gt;
We used IRC in the past. There is a legacy Discord available for RandomData, you can join it trough the link [https://discord.com/invite/9dzUnxF here]&lt;br /&gt;
&lt;br /&gt;
== Meetup ==&lt;br /&gt;
The [https://www.meetup.com/randomdata/?eventOrigin=event_home_page meetup] is mainly used to track events planned by the space, but for brevity its added here as well because its possible to reach us from there, but expect a delayed response compared to Discord/&amp;lt;s&amp;gt;WhatsApp&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== E-Mail ==&lt;br /&gt;
Please use info at for all inquiries. &lt;br /&gt;
&lt;br /&gt;
&amp;quot;info &#039;&#039;&#039;at sign&#039;&#039;&#039; randomdata.nl&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== More ==&lt;br /&gt;
Also check our [[Agenda]] with activities&amp;lt;br&amp;gt;&lt;br /&gt;
LinkedIn: [http://www.linkedin.com/groups?gid=2587386]&amp;lt;br&amp;gt;&lt;br /&gt;
Flickr: [http://www.flickr.com/photos/randomdata]&amp;lt;br&amp;gt;&lt;br /&gt;
Random[[Friends]]&lt;br /&gt;
&lt;br /&gt;
=Active pages:=&lt;br /&gt;
*[[:Category:Docs|Space Documentation]]&lt;br /&gt;
*[[Membership]]&lt;br /&gt;
*[[Projects]]&lt;br /&gt;
*[[Space]]&lt;br /&gt;
*[[Donations|Contributors, sponsors, people we love!]]&lt;br /&gt;
= THIS IS A OLD RESTORE FROM 2018! =&lt;br /&gt;
So Things could be dated on some pages, please be aware of that. Some Archived articles:&lt;br /&gt;
&lt;br /&gt;
=Pasr active pages:=&lt;br /&gt;
*[[Agenda]]&lt;br /&gt;
*[[:Category:Docs|Space Documentation]]&lt;br /&gt;
*[[Membership]]&lt;br /&gt;
*[[Projects]]&lt;br /&gt;
*[[Space]]&lt;br /&gt;
*[[Workshops]]&lt;br /&gt;
*[http://www.flickr.com/photos/randomdata Pictures]&lt;br /&gt;
*[[Donations|Contributors, sponsors, people we love!]]&lt;/div&gt;</summary>
		<author><name>M10</name></author>
	</entry>
	<entry>
		<id>https://wiki.randomdata.nl/w/index.php?title=User:M10&amp;diff=6679</id>
		<title>User:M10</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/w/index.php?title=User:M10&amp;diff=6679"/>
		<updated>2025-03-30T08:36:39Z</updated>

		<summary type="html">&lt;p&gt;M10: init&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;yet another account&lt;/div&gt;</summary>
		<author><name>M10</name></author>
	</entry>
	<entry>
		<id>https://wiki.randomdata.nl/w/index.php?title=Spacebot&amp;diff=6678</id>
		<title>Spacebot</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomdata.nl/w/index.php?title=Spacebot&amp;diff=6678"/>
		<updated>2025-03-30T08:35:11Z</updated>

		<summary type="html">&lt;p&gt;M10: Grammar of featureless&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Spacebot is used to control space related automation tasks.&amp;lt;br&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=Redesign=&lt;br /&gt;
==Featurelist==&lt;br /&gt;
===Must===&lt;br /&gt;
*tell if the space is open&lt;br /&gt;
*have a manual override&lt;br /&gt;
*bring the status to hackerspaces.nl&lt;br /&gt;
===Should===&lt;br /&gt;
*work autonomous&lt;br /&gt;
*be maintained by more the one hax0r&lt;br /&gt;
===Could===&lt;br /&gt;
*be combined with &amp;quot;home automation&amp;quot; like stuff&lt;br /&gt;
*have lazersssss&lt;br /&gt;
===Won&#039;t===&lt;br /&gt;
*have privacy issues&lt;br /&gt;
&lt;br /&gt;
=Oldspacebot=&lt;br /&gt;
[[File:cactispacesample.png|300px]]&lt;br /&gt;
&lt;br /&gt;
==Goals==&lt;br /&gt;
Our goals for now&lt;br /&gt;
*Temperature monitor and (remote)control&lt;br /&gt;
*Space status (open, close) automation and interfacing to [https://twitter.com/#!/randomdataspace Twitter]&lt;br /&gt;
&lt;br /&gt;
==Accomplished==&lt;br /&gt;
*Monitoring of light and temperature: &lt;br /&gt;
**[http://www.smurfer.net/cacti/graph_image.php?local_graph_id=58 graphs]&lt;br /&gt;
**[[Contact#Chatroom_.2F_IRC|IRC]] #randomdata !status&lt;br /&gt;
**Status.html also used for hackerspaces.nl and blogpage: [http://www.randomdata.nl/status.html status.html]&lt;br /&gt;
**Environment page: [http://www.randomdata.nl/spacestatus.html]&lt;br /&gt;
*Space status tweeter to [https://twitter.com/#!/randomdataspace @randomdataspace]&lt;br /&gt;
&lt;br /&gt;
==How==&lt;br /&gt;
*Arduino: [http://arduino.cc/]&lt;br /&gt;
*Sensor shield: [http://www.nuelectronics.com/estore/index.php?main_page=product_info&amp;amp;cPath=7&amp;amp;products_id=20]&lt;br /&gt;
*DS18B20 Temperature sensor: [http://www.nuelectronics.com/estore/index.php?main_page=product_info&amp;amp;cPath=7&amp;amp;products_id=27]&lt;br /&gt;
*LDR (Light Dependant Resistor): [http://www.nuelectronics.com/estore/index.php?main_page=product_info&amp;amp;cPath=7&amp;amp;products_id=22]&lt;br /&gt;
&lt;br /&gt;
The Arduino with the sensorshield and sensors is connected thru USB to a [[NSLU2]] (this could also be a regular pc). A cron job reads every minute the serial port of the [Arduino]. It will display the value&#039;s of the light sensor and the temperature sensor. Thru a http call to our server the cron job will post these value&#039;s to the Randomdata webserver.&lt;br /&gt;
The webserver will store the value&#039;s and add them to cacti, make some calculations if the light of the space is already on (or off) for 5 minutes and take some actions like twitter and adjust some html pages.&lt;br /&gt;
&lt;br /&gt;
==To fix, adjust etc==&lt;br /&gt;
*Publish documented code of the Arduino&lt;br /&gt;
*Publish the scripts of the cron job&lt;br /&gt;
*Publish the scripts of the webserver&lt;br /&gt;
*Publish the IRC scripts&lt;br /&gt;
*create a more permanent casing for the Arduino&lt;br /&gt;
*add an electronic valve to the heating system&lt;br /&gt;
*activate the central heating valve&lt;br /&gt;
*add functionality to the system to put the temperature up and down (IRC &amp;quot;!temp up&amp;quot; &amp;amp; &amp;quot;!temp down&amp;quot; &amp;amp; &amp;quot;!temp up 17:00-23:00&amp;quot;&lt;br /&gt;
[[Category:Projects]]&lt;br /&gt;
[[Category:Arduino]]&lt;br /&gt;
&lt;br /&gt;
==Code Arduino==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define TEMP_PIN  18&lt;br /&gt;
#define LDR_PIN 3&lt;br /&gt;
&lt;br /&gt;
void OneWireReset(int Pin);&lt;br /&gt;
void OneWireOutByte(int Pin, byte d);&lt;br /&gt;
byte OneWireInByte(int Pin);&lt;br /&gt;
int lightcounter;&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
    digitalWrite(TEMP_PIN, LOW);&lt;br /&gt;
    pinMode(TEMP_PIN, INPUT);      // sets the digital pin as input (logic 1)&lt;br /&gt;
    Serial.begin(9600);&lt;br /&gt;
    delay(100);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int HighByte, LowByte, TReading, SignBit, Tc_100, Whole, Fract;&lt;br /&gt;
&lt;br /&gt;
  OneWireReset(TEMP_PIN);&lt;br /&gt;
  OneWireOutByte(TEMP_PIN, 0xcc);&lt;br /&gt;
  OneWireOutByte(TEMP_PIN, 0x44); // perform temperature conversion, strong pullup for one sec&lt;br /&gt;
&lt;br /&gt;
  OneWireReset(TEMP_PIN);&lt;br /&gt;
  OneWireOutByte(TEMP_PIN, 0xcc);&lt;br /&gt;
  OneWireOutByte(TEMP_PIN, 0xbe);&lt;br /&gt;
&lt;br /&gt;
  LowByte = OneWireInByte(TEMP_PIN);&lt;br /&gt;
  HighByte = OneWireInByte(TEMP_PIN);&lt;br /&gt;
  TReading = (HighByte &amp;lt;&amp;lt; 8) + LowByte;&lt;br /&gt;
  SignBit = TReading &amp;amp; 0x8000;  // test most sig bit&lt;br /&gt;
  if (SignBit) // negative&lt;br /&gt;
  {&lt;br /&gt;
    TReading = (TReading ^ 0xffff) + 1; // 2&#039;s comp&lt;br /&gt;
  }&lt;br /&gt;
  Tc_100 = (6 * TReading) + TReading / 4;    // multiply by (100 * 0.0625) or 6.25&lt;br /&gt;
&lt;br /&gt;
  Whole = Tc_100 / 100;  // separate off the whole and fractional portions&lt;br /&gt;
  Fract = Tc_100 % 100;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
  if (SignBit) // If its negative&lt;br /&gt;
  {&lt;br /&gt;
     Serial.print(&amp;quot;-&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  Serial.print(&amp;quot;temp=&amp;quot;);&lt;br /&gt;
  Serial.print(Whole);&lt;br /&gt;
  Serial.print(&amp;quot;.&amp;quot;);&lt;br /&gt;
  if (Fract &amp;lt; 10)&lt;br /&gt;
  {&lt;br /&gt;
     Serial.print(&amp;quot;0&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  Serial.print(Fract);&lt;br /&gt;
  &lt;br /&gt;
  int light;&lt;br /&gt;
  light = analogRead(LDR_PIN);&lt;br /&gt;
  Serial.print(&amp;quot;&amp;amp;light=&amp;quot;);&lt;br /&gt;
  Serial.print(light);&lt;br /&gt;
  &lt;br /&gt;
  //counter for twitter&lt;br /&gt;
  if (light &amp;gt;= 300)&lt;br /&gt;
  {&lt;br /&gt;
  lightcounter = lightcounter + 1;&lt;br /&gt;
  if (lightcounter &amp;gt; 120) lightcounter = 120;&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
  lightcounter = lightcounter - 1;&lt;br /&gt;
  if (lightcounter &amp;lt;= 1) lightcounter = 0;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  Serial.print(&amp;quot;&amp;amp;lc=&amp;quot;);&lt;br /&gt;
  Serial.print(lightcounter);&lt;br /&gt;
  Serial.print(&amp;quot;\n&amp;quot;);&lt;br /&gt;
  &lt;br /&gt;
  delay(5000);      // 5 second delay.  Adjust as necessary&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void OneWireReset(int Pin) // reset.  Should improve to act as a presence pulse&lt;br /&gt;
{&lt;br /&gt;
     digitalWrite(Pin, LOW);&lt;br /&gt;
     pinMode(Pin, OUTPUT); // bring low for 500 us&lt;br /&gt;
     delayMicroseconds(500);&lt;br /&gt;
     pinMode(Pin, INPUT);&lt;br /&gt;
     delayMicroseconds(500);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void OneWireOutByte(int Pin, byte d) // output byte d (least sig bit first).&lt;br /&gt;
{&lt;br /&gt;
   byte n;&lt;br /&gt;
&lt;br /&gt;
   for(n=8; n!=0; n--)&lt;br /&gt;
   {&lt;br /&gt;
      if ((d &amp;amp; 0x01) == 1)  // test least sig bit&lt;br /&gt;
      {&lt;br /&gt;
         digitalWrite(Pin, LOW);&lt;br /&gt;
         pinMode(Pin, OUTPUT);&lt;br /&gt;
         delayMicroseconds(5);&lt;br /&gt;
         pinMode(Pin, INPUT);&lt;br /&gt;
         delayMicroseconds(60);&lt;br /&gt;
      }&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         digitalWrite(Pin, LOW);&lt;br /&gt;
         pinMode(Pin, OUTPUT);&lt;br /&gt;
         delayMicroseconds(60);&lt;br /&gt;
         pinMode(Pin, INPUT);&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
      d=d&amp;gt;&amp;gt;1; // now the next bit is in the least sig bit position.&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
byte OneWireInByte(int Pin) // read byte, least sig byte first&lt;br /&gt;
{&lt;br /&gt;
    byte d, n, b;&lt;br /&gt;
&lt;br /&gt;
    for (n=0; n&amp;lt;8; n++)&lt;br /&gt;
    {&lt;br /&gt;
        digitalWrite(Pin, LOW);&lt;br /&gt;
        pinMode(Pin, OUTPUT);&lt;br /&gt;
        delayMicroseconds(5);&lt;br /&gt;
        pinMode(Pin, INPUT);&lt;br /&gt;
        delayMicroseconds(5);&lt;br /&gt;
        b = digitalRead(Pin);&lt;br /&gt;
        delayMicroseconds(50);&lt;br /&gt;
        d = (d &amp;gt;&amp;gt; 1) | (b&amp;lt;&amp;lt;7); // shift d to right and insert b in most sig bit position&lt;br /&gt;
    }&lt;br /&gt;
    return(d);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>M10</name></author>
	</entry>
</feed>