In wall light switch node - Custom PCB
-
I would like to ask if someone could just double check my Schematic and Board layout for me, just as a second pair of eyes before i send the gerber files over to ITead.cc in the morning. I'm pretty sure everything is as it should be, but would like a second pair of eyes to give it a scan over.
Can't wait to get Rev2 up and running to deliver the upgrades that have been made!
Thank you in advance :)

@samuel235 Look again at your Reset-Dtr net wiring compared to example and reference. Also C8 is probably ment to be in parallell with the battery.
-
@samuel235 Look again at your Reset-Dtr net wiring compared to example and reference. Also C8 is probably ment to be in parallell with the battery.
-
@samuel235 Look again at your Reset-Dtr net wiring compared to example and reference. Also C8 is probably ment to be in parallell with the battery.
@m26872 - I just have to connect the right side (positive connection) to the batt + right?
Then for the reset line, i've been having some horrible issues with understanding the connection for this and i genuinly thought i had it here with this Rev. I will study that and take a look soon as i get home today.
-
@samuel235 Look again at your Reset-Dtr net wiring compared to example and reference. Also C8 is probably ment to be in parallell with the battery.
@m26872 said:
@samuel235 Look again at your Reset-Dtr net wiring compared to example and reference.
I'm sorry @m26872, however i feel that my reset line is connected correctly. I have used Atmel's recommendation to verify this and everything is exactly the same as they suggest to use apart from the fact i do not have a diode in there, which they recommend.
Also C8 is probably meant to be in parallel with the battery.
I have the negative connection made to the GND plane, then the positive receives its power from the BATT and then out to the various components now.
Below is 3 images, one for the modified BATT & C8 connection, one for the recommended reset circuit from Atmel, and the other is my actual reset circuit.
C8 & BATT

Atmel's recommendation for reset circuit

My Actual reset circuit

Please could you inform me where I am going wrong with the reset pin because I simply can't see anything to my knowledge.
-
I think you may add some net labels at RST, DTR. So it is less ambiguous to read ;)
Here a basic sparkfun arduino mini schematic so you can check :)
https://cdn.sparkfun.com/assets/0/7/5/5/1/51eec304ce395f104c000000.png -
I think you may add some net labels at RST, DTR. So it is less ambiguous to read ;)
Here a basic sparkfun arduino mini schematic so you can check :)
https://cdn.sparkfun.com/assets/0/7/5/5/1/51eec304ce395f104c000000.png@scalz - Labels have been added to make it easier to understand.
However, this is exactly how I wired Rev1, it didn't work until I hacked together the reset pin. I'm getting even more confused at to why my Rev1 didn't work now, I thought that by bypassing/altering the connections with some wires and it working would indicate that I had wired Rev1 incorrectly, I used the link you sent to me as reference while I was making Rev1.
However, i have done as you have suggested and attached images below. I've also attached my eagle files in case you wanted to trace any routes you can't see clearly on the images.

-
Looks good now except that AVR ISP (JP1) pin 5 should connect straight to RESET and not to DTR.
-
Looks good now except that AVR ISP (JP1) pin 5 should connect straight to RESET and not to DTR.
-
@m26872 - Does the FTDI need to go to RESET or DTR? I'm feeling DTR because all the FTDI programmers i'm using is labeled with DTR and not RESET, am i correct in assuming this?
@samuel235 Yes.
-
@samuel235 Yes.
@m26872 - Perfect. Thank you for your assistance, I really appreciate it! I'll get these ordered tonight hopefully and then keep looking at the circuitry for my RESET and DTR line to memorize it and work out why its so hard to get into my brain xD.
Just one last confirm, since I'm not that confident with myself at the moment regarding this RESET line, if you don't mind.

-
@m26872 - Perfect. Thank you for your assistance, I really appreciate it! I'll get these ordered tonight hopefully and then keep looking at the circuitry for my RESET and DTR line to memorize it and work out why its so hard to get into my brain xD.
Just one last confirm, since I'm not that confident with myself at the moment regarding this RESET line, if you don't mind.

@samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.
-
@samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.
@m26872 said:
@samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.
Indeed I do, the board itself isn't finished yet, I just wanted you to clarify the wiring was correct. Time to tidy it up, finish the annotating and get it finalized. However, thank you for pointing it out to me (Shows you're actually paying some attention to this). Thank you, yet again. The level of support and time you dedicate to helping others on here is outstanding. It is most certainly noticed!
-
@m26872 said:
@samuel235 Reset and Dtr routing looks correct, but you still have DTR silkscreen label next to AVR ISP.
Indeed I do, the board itself isn't finished yet, I just wanted you to clarify the wiring was correct. Time to tidy it up, finish the annotating and get it finalized. However, thank you for pointing it out to me (Shows you're actually paying some attention to this). Thank you, yet again. The level of support and time you dedicate to helping others on here is outstanding. It is most certainly noticed!
@samuel235 You're very welcome. We'll all benefit when you succeed.
-
UPDATE!
Revision 2 boards have now been submitted for manufacturing. Standard shipping used, so expecting within the next 23 days. This is going to pain me!
On the side note, I've enrolled for Open University and will be studying now for around 4 years. I'm doing a Computing and IT degree to follow on from my existing IT Qualifications (Microsoft and CompTIA). I do hope to incorperate this community and the projects i take on with you guys into my studying. I also do not expect this to effect the time and effort I'm able to spend with you guys here and developing our projects together.
I will update you ASAP, when these boards get here :)
-
great :)
-
I will upload this device to Openhardware.io as soon as i have it built up and the basic functionality working. Hopefully then it will become much easier for the starting MySensor budding builders to understand and follow. I may do a 'basic build instructions' that can be followed on how to get this working, including putting the hardware together.
-
Board Revision2 got delivered today and obviously i set about populating the board instantly!

I have the board all completed and now I'm attempting to burn the bootloader on. Before i go ahead and screw my IC up (I read if you use the wrong fuse reading for the timing of the clock you can't Re-burn anything else to it) i would like some advice. I've detected the current/pre-set fuse readings through AVRDUDESS using a clock speed of 93.75KHz, so i know the connection between my computer and the board is working. The readings for the fuses are below:

I'm currently using the fuse calculator here to workout the fuses needed. I'm also looking at Maniac's blog post here as he made a very low power module. The only thing i would question about his version/board is that his brownout is set to 2.7v. I've checked the nRF module and the lowest voltage it can go is 1.9, so maybe i should bring the BoD reading down even more or even disable it all together (I plan on reading the battery voltage from this module anyway).
The below settings for the fuses are my own workings out with the fuse calculator linked above, I'm doubting myself here, i'm in territory that i'm not comfortable with so I'm more than likely making a mistake here but what do you think? The BoD is set to 1.8 here:
Low: 0x62 | High: 0xD9 | Extended: 0xFE
Once i have confirmed a fuse setting, Do I edit them into the board.txt config of Maniac's blog post or do I use that of @tekka's?
-
I have a very brief guide here, under 'Software'. There are some links to other guides as well. I think you use (42, DE, 07/FF) together with that linked bootloader (important).
I also think Maniacs guide is a little old. You should get a a lot lower power by using MySensors lib and other some other tricks and settings.
-
I have a very brief guide here, under 'Software'. There are some links to other guides as well. I think you use (42, DE, 07/FF) together with that linked bootloader (important).
I also think Maniacs guide is a little old. You should get a a lot lower power by using MySensors lib and other some other tricks and settings.
@m26872 From having a quick look at your guide, you bring your clock speed right down to 1MHz, am i correct in thinking this? Do you have any timing issues at all, is the node still quick enough to respond to switching and sensor detecting or is there a delay in the signal sending?
-
@m26872 From having a quick look at your guide, you bring your clock speed right down to 1MHz, am i correct in thinking this? Do you have any timing issues at all, is the node still quick enough to respond to switching and sensor detecting or is there a delay in the signal sending?
@samuel235 Yes, it's working. But you can't use some things like DS18B20s and DHTs at these low frequencies. Si7021 etc are used instead. Button switches and other simple things are exellent applications.
