- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am doing project on fpga, my title of project is hardware reconfigurable wireless sensor node for real time application". i m using altera de2 115 which contains cyclone 4. i want to interface co2 temperature sensor zigbee with fpga. so i need co2 sensor, temperature sensor and zigbee vhdl program. pls help me those who are seeing these post :)
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd suggest your question is far too general for this forum.
If you have a more specific question to pose, do so. Describe the Zigbee interface your hoping to hook up to the FPGA and what you're hoping the FPGA will do. That may yield some better guidance...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i m going to create a nios processor in FPGA and Zigbee will recieve data from sensor and it will send data to FPGA and FPGA will actuate relay and nios has UART through we can interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, is the interface between the Zigbee device and the FPGA a UART?
Assuming so, and assuming it is a low voltage UART (i.e. below 3.3V), then you'll be able to connect the Zigbee's UART directly to the FPGA on DE2 board, probably via the 40-way 0.1" pitch GPIO connector (JP5), setting the I/O voltage with JP6 accordingly. If the Zigbee device operates at standard UART voltages you will require an external level shifter to condition the signalling to a maximum of 3.3V. However, before doing any of the above you can... Setup a Quartus project using the top level hdl template provided with the DE2 kit. This identifies all the I/O available on the DE2 board, most of which (I suspect) you will not need. You will also need to reference the pin assignments specified in .qsf file (also from Terasic) identifying which signal names go to which FPGA pins. From within Quartus launch Qsys and create a new NiosII processor. Add whatever memory you require for the Nios, for simplicity I'd suggest using the SRAM available on the DE2 board. Add a UART peripheral to interface to your Zigbee. I would add a second UART (that will connect to the RS-232 port [J6] available on the DE2 board) to help with debugging your software. Alternatively, you can use the JTAG UART which is used via your USB-Blaster. Save your Nios project, noting the name you use (e.g. myNios) and generate the NiosII core. Locate the resulting hdl file of the same name as your Nios. By default this will be under your quartus project directory under ./{myNios}/synthesis/myNios.vhdl. At the top of that file will be the module declaration for myNios. You need to instantiate one instance of that module in the top level of your Quartus project and connect up the I/O accordingly. Compile your Quartus project and program it into your DE2 board. Using Altera's "Software build tools for Eclipse" create a software project based on the 'myNios.sopcinfo' file located (by default) in your Quartus project directory. I suggest you create a software project based on one of Altera's templates, for example "Hello World". Configure the project to connect stdio to the extra UART peripheral you have on your Nios (DE2 RS-232 port or JTAG UART via USB-Blaster). Run the project and gain some confidence in your setup. All of the above you can do without even connecting up your Zigbee device. Once you're happy connect it up and set about writing code for it.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page