Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > Simple Actuator Question

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Simple Actuator Question
Moderator:
ARVI

Post Reply
Follow this topic



Simple Actuator Question

ScotleCyphez posted on 07 May 2013 7:04 PM PST
Member
7 Forum Posts

Hello all,

I am trying to use Sense and Control Dashboard 2.0 to have a sensor relay results to an actuator and upon receiving certain results, the actuator performs a task.  For example, if the sensor detects a temperature that is too high (say above 30 degrees celsius), the actuator is informed that this condition has been met and proceeds to flash a series of LEDs and start a buzzer.

Currently, I am able to have the sensors results displayed on the Sense and Control Dashboard 2.0.  I am also able to set up an actuator that is being sent information based on if the sensor's results meet certain conditions.  My problem is How do I have the actuator process information being sent to it and execute a method? 

For more details my setup is as follows (all parts are from the PSoC FirstTouch Starter Kit with CyFi Low-Power RF or the Environmental Sensing Kit):

1) Actuator: AAA Battery Pack --- RF Expansion Board --- Multifunction Board

2) Sensor: AAA Battery Pack --- RF Expansion Board --- Weather Station Expansion Board

 

(I think my problem has to do with relaying information from the RF Expansion Board to the Multifunction Board)

Thanks in advance,

Cyphez




Re: Simple Actuator Question

ScotleCyphez posted on 07 May 2013 08:45 PM PST
Member
7 Forum Posts

 Another possible topic of interest would be using the same setup, how would one go about directly transmitting the information from the sensor to the actuator, without the use of the PC as the middle man?



Re: Simple Actuator Question

PSoC73 posted on 07 May 2013 09:41 PM PST
Top Contributor
176 Forum Posts
Hi ScotleCyphez, I'm not shavvy with FirstTouch-Kit-RF but may I advise for you. I have look the Cy3271-kit users guide. Your ploblem is you can receive a sensor alam, but you can not send a signal to actuator automatically. right? Do you have source code of the Sense and Control Dashboard 2.0? If you have, you can check the exchange of signals and control how you want to. My English is quite not much. can I help you.

Re: Simple Actuator Question

ScotleCyphez posted on 07 May 2013 09:54 PM PST
Member
7 Forum Posts

 I can send a signal to the Actuator, however, I do not know how to have the actuator process the signal it is receiving.

I can currently receive a signal from a sensor (such as temperature or humidity), send this information to the PC to be viewed by the  Cypress Sense and Control Dashboard, analyze the information, and if the information meets a certain criteria (such as a temperature being too high), a specific value is sent to the actuator.  The value that is sent to the actuator is what I am having problems handling. My goal is to examine the value and trigger a buzzer on the Multifunction Board.

My problem is, how do I have the actuator (which has received a value) process the received value?



Re: Simple Actuator Question

ScotleCyphez posted on 08 May 2013 10:02 PM PST
Member
7 Forum Posts

I think my problem might be better phrased as:

How do I relay the data received on the RF Expansion board to the MultiFunction Board?



Re: Simple Actuator Question

PSoC73 posted on 08 May 2013 10:08 PM PST
Top Contributor
176 Forum Posts
"My problem is, how do I have the actuator (which has received a value) process the received value?" Does it mean value itself? OR received YES or NOT?

Re: Simple Actuator Question

PSoC73 posted on 08 May 2013 10:20 PM PST
Top Contributor
176 Forum Posts
OK, two ways comes up. 1) Use the Console tool of Dashboard, send message to actuator, and check it. 2) Whatever we doesn't have PC source code or USB-HUB firmware code, but we have a HUB-I2C firmware code. hack it.

Re: Simple Actuator Question

ScotleCyphez posted on 08 May 2013 10:32 PM PST
Member
7 Forum Posts

 1) Use the Console tool of Dashboard, send message to actuator, and check it.

This is what I am currently trying to do. The message is sent to the actuator. The problem is how do I get the actuator to handle the value sent to it.



Re: Simple Actuator Question

PSoC73 posted on 08 May 2013 10:53 PM PST
Top Contributor
176 Forum Posts
You should have the actuator firmware code, So hack it and lit a LED when the actuator have received the signal.

Re: Simple Actuator Question

Bob Marlowe posted on 08 May 2013 11:44 PM PST
Top Contributor
1768 Forum Posts

You HAVE got the actuator firmware (it's on the accompanying CD) and you'll have to change that. The sensor (actuator) boards contain usual members of PSoC1-family and are programmable as well but they lack the additional hardware you are talking about (LEDs, buzzer).

 

Bob



Re: Simple Actuator Question

danaaknight posted on 08 May 2013 03:40 AM PST
Top Contributor
1773 Forum Posts

The basic kit you have looks like -

 

The hub can both act as a hub or to program the node boards.

 

So basically you take the node board of interest and modifiy its code to effect actuator

behaviour. The firmware for the node is located on kit CDROM. So you would open up

that firmware in Designer and modifiy it. Note the projects, if I am not mistaken, are

5.1 or 5.0 Designer projects. Look at user manual for the procedure to program a node

board. You have to make sure you pick the right PSOC to insure you are not re-programming

the hub firmware device.

 

Regards, Dana.

 



Re: Simple Actuator Question

ScotleCyphez posted on 08 May 2013 02:25 PM PST
Member
7 Forum Posts

 This sounds like what I am looking for!

\

My only question now is how do I go about programming the node board?As a reminder my setup is:  AAA Battery Pack --- RF Expansion Board --- Multifunction Board

\

I have opened the firmware for the Multifunction Board in Designer and I am able to program the MultiFunction board to do various tasks on its own (such as flash an LED and buzz a buzzer in sync).  I have also opened the firmware for the RF Expansion Board but I still do not understand how to have the RF expansion board communicate with the Multifunction board based on the data it is receiving (I also do not even know how to have the RF Expansion board examine the data being received from the Hub)

\

In terms of what is actually going on, the weather station sends temperature measurements to the SCD, the SCD analyzes the temperature, if the temperature is found to be in a given range a certain command is sent to the RF Expansion Board, The problem is here. How do I have the RF Expansion Board forward the command for the MultiFunction board to process and perform a certain action?

\

Sorry for so many questions but I am completely new to PSoC programming.



Re: Simple Actuator Question

PSoC73 posted on 08 May 2013 03:03 PM PST
Top Contributor
176 Forum Posts
Hi ScotleCyphez "Ohayou" Basically You want to do on FTK-RF which can do without firmware modification. You know, [User Guide] Button help for you. How to Configure Sensor and Actuator, How to write conversion expression. How to do create and edit Actuator Rules. Which are all in there. These are written politely and concretely. You can be understand. Regrettable, I didn't have FTK-RF actually. I cann't describe more detail. Thank you.

Re: Simple Actuator Question

danaaknight posted on 08 May 2013 03:27 PM PST
Top Contributor
1773 Forum Posts

 In-System Programming


The master CY8C24894 on the hub side doubles as a programmer for the PSoC connected to it -
the application CY8C24794 on the hub board or the PSoC on an FTRF Expansion card. You can use
this feature to download the firmware hex file onto the PSoC CY8C27443 processor on the RF
Expansion board.

 

The manual has a section dedicated on this. Basically the usb hub can program its own application

processor (there are 2 in the hub, one to handle USB, the other as an application processor or as a

programmer for external boards plugged into it). When you program you make sure you have the correct

part number for the FTRF board set in the programmer, or you will wind up programming the processor

in the hub, which in general you do not do unless you decide to modify its firmware.

 

Regards, Dana.



Re: Simple Actuator Question

danaaknight posted on 08 May 2013 03:31 PM PST
Top Contributor
1773 Forum Posts

PSoC73 is correct to a point. If you are just using the Cypress boards, and

no need to pass info from one node to another, just node to hub, you can

pretty much handle that with SCD.

 

But if you want to add your own sensors with more than simple signal conversion,

then you will have to do firmware mods.

 

Regards, Dana.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20