<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[edited: 4 diy dimmer module. should i make icsp or serial programming connections, both?]]></title><description><![CDATA[<p dir="auto">I am building a 4 ch. pwm led dimmer. It's predessor used the PWM outputs from the arduino pro mini, but when ever I am filming or taking a picture I can not dim the light's and when I want to use it as a nightlight I realise there are only 256 steps. Which is not enough.</p>
<p dir="auto">The PCA9685 is capable of 4096 steps and 1600Hz. Which is not perfect but a huge step forward.</p>
<p dir="auto">I am not using the arduino pro mini board anymore for the first time. I want to use the bare chip. There is a lot of room on the pcb, but I have yet to do a connector or pads for programming. I ask you to check my scematic and advice one icsp &amp; serial programming connections.</p>
<p dir="auto">The layout is somewhat similer to the previous version. The tracks that are now under the NRFmodule will be replaced somewhere else. It wil be a double layered board so there a no problems routing. This was sort of my quick and dirty routing.</p>
<p dir="auto"><img src="/assets/uploads/files/1570372430902-20191006-schema-resized.png" alt="1_1570372430146_20191006-schema.PNG" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1570372431156-20191006-board-resized.png" alt="0_1570372430144_20191006-board.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mysensors.org/topic/10678/edited-4-diy-dimmer-module-should-i-make-icsp-or-serial-programming-connections-both</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 02:28:46 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/10678.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Oct 2019 14:37:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to edited: 4 diy dimmer module. should i make icsp or serial programming connections, both? on Tue, 05 Nov 2019 00:48:26 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I guess what i am trying to find out is how i get my sensors code to use the Adafruit_PWMServoDriver code to do the same as you than. I would like to control 5 sets of RGB strips by 5 separate V_RGB faders in domoticz using my sensors. But i cant figure out how to get mysensors to tell the PCA9685 chip how to controll the channels.</p>
]]></description><link>https://forum.mysensors.org/post/102093</link><guid isPermaLink="true">https://forum.mysensors.org/post/102093</guid><dc:creator><![CDATA[MGHaff]]></dc:creator><pubDate>Tue, 05 Nov 2019 00:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to edited: 4 diy dimmer module. should i make icsp or serial programming connections, both? on Sun, 20 Oct 2019 09:31:15 GMT]]></title><description><![CDATA[<p dir="auto">I am using an adafruit library to communicate with the ic.</p>
<p dir="auto">I am not cascading them, so I have no idea how to do that part. But controller 1 of them is easy. And when I have my pcb's design finished and ordered and all the parts at home, I will come up with a protocol of how the lights should respond to mysensor messages.</p>
<pre><code>/*************************************************** 
  This is an example for our Adafruit 16-channel PWM &amp; Servo driver
  GPIO test - this will set a pin high/low

  Pick one up today in the adafruit shop!
  ------&gt; http://www.adafruit.com/products/815

  These drivers use I2C to communicate, 2 pins are required to  
  interface.

  Adafruit invests time and resources providing this open source code, 
  please support Adafruit and open-source hardware by purchasing 
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.  
  BSD license, all text above must be included in any redistribution
 ****************************************************/

#include &lt;Wire.h&gt;
#include &lt;Adafruit_PWMServoDriver.h&gt;

// called this way, it uses the default address 0x40
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
// you can also call it with a different address you want
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41);
// you can also call it with a different address and I2C interface
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40, &amp;Wire);

void setup() {
  Serial.begin(9600);
  Serial.println("GPIO test!");

  pwm.begin();
  pwm.setPWMFreq(1600);  // Set to whatever you like, we don't use it in this demo!

  // if you want to really speed stuff up, you can go into 'fast 400khz I2C' mode
  // some i2c devices dont like this so much so if you're sharing the bus, watch
  // out for this!
  Wire.setClock(400000);
}

void loop() {

delay(1000);
  // Drive each pin in a 'wave'
  for (uint16_t waarde=0; waarde &lt;4000; waarde++) {
    pwm.setPin(0,waarde);       // turns pin fully on
    delay(5);
  }
  delay(500);
    for (uint16_t waarde=4000; waarde &gt;0; waarde--) {
    pwm.setPin(0,waarde);       // turns pin fully on
    delay(5);
  }
}```</code></pre>
]]></description><link>https://forum.mysensors.org/post/101765</link><guid isPermaLink="true">https://forum.mysensors.org/post/101765</guid><dc:creator><![CDATA[Joerideman]]></dc:creator><pubDate>Sun, 20 Oct 2019 09:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to edited: 4 diy dimmer module. should i make icsp or serial programming connections, both? on Sun, 20 Oct 2019 00:55:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joerideman" aria-label="Profile: joerideman">@<bdi>joerideman</bdi></a> what code are you using to run the 9685 chip? I'm looking to build a multi rgb strip controller but having problems finding mysensors code to use as an example to talk to the 9685. Any help is greatly appreciated! thanks.</p>
]]></description><link>https://forum.mysensors.org/post/101763</link><guid isPermaLink="true">https://forum.mysensors.org/post/101763</guid><dc:creator><![CDATA[MGHaff]]></dc:creator><pubDate>Sun, 20 Oct 2019 00:55:29 GMT</pubDate></item></channel></rss>