This was a “bumpy” weekend; it started quite good: I built an active Butterworth second order low pass filter using one of the opamps inside PsoC4. I put together all external components and configured the PsoC opamp to route the output off-chi...
My big build is coming up, but for now it's all about motion control. With all my of encoder talk so far, one might wonder what I am trying to do with them. Early on as an automation engineer you learn that we don't often build robots like you m...
It took me some time to solder everything together, but finally I got it working. Bulbs and lamps supplied with 230V are not so easy to dim. You cannot just take PWM signal from uC and simply use it as for DC powered lights. However, there are variou...
setLED(uint8 R, uint8 G, uint8 B) I've been mucking around with these guys while in search of an elegant LED solution for my light, http://www.adafruit.com/datasheets/WS2812.pdf They are reasonably well known in the arduino/weara...
Dynamite with a Laser BeamI always considered constructing a Laser Display Controller using the PSoC 4 if time permitted. Time permitted and so I did. Above are my initial results. I was quite surprised to see how well it worked considering it worked...
Lots of hurdles and finally success .This the primary target was to make the wake-up using watch dog timer work and have the Nokia LCD working.Still need to implement the Fonts to draw on the screen. Quick snapshot of the current design: Issues:...
Well finally sat down and cracked open the PSoC4 box and decided to start on the software side of the project. After a little searching around I finally found the down load on Cypress website. (After the fact I found the direct link on the 100 ...
Recently I receive more components to plug in to the PSoC. Great you may say, and yes it is. Not too much time after I realized that I will be running out of ports to connect stuff to the PSoC4. Then I came across some documentation that said I can p...
Neither True Nor False!Some remote controls double up their illumination LEDs as light detectors to reduce the part count and cost so I thought I'd attempt to reduce the part count even further with a PSoC 4.LEDS can double as photodiodes and can...
Hello All, I hit a little stumbling block with the FRAM. I added a small delay ( CyDelay(10) ) to my UART printing code, and things worked better after that. I ran a simple unit test in which I wrote the entire contents of the FRAM with an ...
Sensational! Why have I focussed so much upon standard Timer component? Well it is a extremely useful component and is a great introduction for the PSoC 4 native TCPWM (Timer Counter PWM) mechanism.Above are screenshots of the signal captures of...
In the last post I talked briefly about some features of the RTOS and how it uses time slices. The advantage of time slices is the precision control that I have over the timing of my signals. Instead of using nop delay loops which may or ...
A few posts ago I posted about the bluetooth and the PSoC and was asked to post some code for it. So here it is some sample code to write from Android via Bluetooth to the PSoC. This is nothing close to what my project be but it is a test of the diff...
Got some work done on the sensor boards today. Here is the logic diagram:As you can see the Moisture sensor end of the design is very simple. Just a CMOS 555 timer set up in astable mode. Resistor values of R1 and R2 were chosen experimentally in my ...
A Possible Bug In Component Detected! Why this boring photo? Well read on!This was created using schematicand code. All very simple but something has gone wrong!Can you spot what's wrong before reading on? Whilst working on a new t...
Hello All, I have been having good momentum in the past few weeks. I was able to get the FRAM I2C to work. You can see the example code below: /********************************************
writeSample
- Writes one 16 bit (two byte) sample t...
It was a bit late for Last weeks updates, this was due to some blocking caused by the Watchdog issues. Here is the Timeline:Stage 2: Ordering & Start-upPrerequisite for this stage is the availability of the PSoC4 Pioneer kitPlaced order – Ne...
Hello all, This update is a bit late, but due to a "locked knee" (can't fully stretch my leg anymore) I had some other concerns to deal with! Update on the complete challengeHere are some posts to get you started if you jumped into this cha...
An Old Timerplayers.brightcove.net/.../index.htmlThis is a self contained project that demonstrates how to use the Timer component to measure the duration of a button push.It is one of my tests of the Timer (2.5) component.This picture may look simpl...
Captured on Film!The Timer (2.5) component also has a capture input.It's options are identical to the timer's trigger options:NoneRising EdgeFalling EdgeEither EdgeSoftware ControlledWith the Capture Counter checkbox unchecked, the Capture pi...
I know in the last post I said I was going to work on the hardware, but it seems like I got sucked into one too many problems on the software side. However, the hard works has paid off, as I have successful ported over the QP, a quasi-RTOS fram...
First I want to thank all of you who commented on my last week update; DAB, good suggestion - I researched some commercial head sensors and what they are used for, and it looks like a lot of research groups are looking into processing brain waves or ...
Implementing Encoders This part is basically an amalgam of existing bits I got from example code. I've tested out that I can get it to read my encoders. It looks good as long as I don't need to use this method with more than one encoder ...