At MyMakerTools we provide what powers your Maker projects and the Maker tools to be creative. This includes USB Power supplies to power your creations, the Maker Surprise line of Bricks & controllers, HO train goodies to make the layout stand out and soft wear to make your life just a little more comfortable.
Wednesday, March 28, 2018
Light Buddy Firmware (Part 6)
Got some what side tracked by my day job. After the little problem with the I2C address and the fact that my UBEEE died on me, I decided to work on the PIC controlled LEDs and the sensor inputs. Here are several pictures of the unit with the sensor input attached and the LED output attached. You will notice in the second picture that the sensor board attaches to the top of the Light BuddyTM , a nice byproduct.
The LEDs were straight forward. They were up and running quickly using the code from the Brick Buddy. I am not happy with the performance of the two PWM LEDs, These are randomly generated pulse widths, which in turn give a random brightness to the LED. While one works as expected, the second one seems to have less range of brightness. The two channels are setup identically and programmed in the same loop. So this is somewhat of mystery right now. But there are bigger problems to tackle right now, since I am convinced this is not a hardware problem.
The sensors were also straight forward. The three switches are Interrupt On Change (IOC) capable and a simple interrupt routine handled all there state. The POT tool a little longer, acutally had to get the scope out to determine what was what. But after making sure that all of the bits in the path were set correctly, it started delivering data.
This part is now finished and it is back to the LP5569.
Labels:
LED,
Light Buddy,
PIC,
PIC18F25K50
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment