Heya, Thanks for visiting!
Here is a simple guide to get your stepper motors spinning. The video below demos what I made. You can see how everything is set up below that: Watch on YouTube Parts: Teensy 3.0 or 3.1: Substitute your own Arduino/microcontroller Stepper Motors: 1.7A NEMA 17 4-wire Motor Controllers: I used a 3.5A controller with the TB6560 chips Power Supply: 24V 10A (I used a Sopudar SPD-240-24) Wiring Diagram / Schematic: Code (.ino, arduino code): const int stepperX_pul = 0; const int stepperX_dir = 1; const int stepperY_pul = 2; const int stepperY_dir = 3; int microstep_count = 0; void setup() { // Set up the x axis pinMode(stepperX_pul, OUTPUT); pinMode(stepperX_dir, OUTPUT); // Set up the y axis pinMode(stepperY_pul, OUTPUT); pinMode(stepperY_dir, ...
Just finished the classic tennis game Pong for my Basys 2 FPGA. The project is written in VHDL and is played on a VGA monitor. Built from scratch. You can see a video of it in action at the bottom of this article. Features: Multiplayer: Battle against your friend Play against the AI. Or AI vs AI battles Score Keeping Hidden Mode / Easter Egg Source: Just visit the Github Repo. Controls: Action Control Player Left/1 Paddle movement btn2 and btn3 Player Right/2 Paddle movement btn0 and btn1 Reset switch0 Player Left/1 AI Enable switch7 Player Right/2 AI Enable switch6 Technology: Here just a list of things implemented in this design Collision Detection and Resolution VGA Output, game video Text ...
Go straight to the VGA Simulator About The VGA Simulator is a web based tool to easily view a raw VGA signal without having to hook it up to an actual CRT monitor. Easily review and save any frames generated. It uses horizontal sync, vertical sync, and red, green, blue to recreate pixel perfect frames. The image below is a scaled down version of the real thing so mind the blurryness: The purpose of this tool was to create a faster way to debug FPGA/VHDL projects that utilize VGA. The problem is that synthesizing and generating a bit-file takes too long with Xilinx mainly because it only utilizes a single core. Although we have Simulators such as Isim to debug ...
Update (2013-12-11): I decided to use javascript and the html5 canvas. You can see the project I made here: VGA Simulator I decided to post up this simple script that generates an animated (scrolls horizontally) sine wave. I built both versions because I need to use a canvas and some bare-bone pixel manipulation for a future project and want to find the best solution. The first one is made with pygame, which runs smooth and is straight forward efficient. The second version made with tkinter is slow and laggy. I even had to batch edit pixels which does not help much. Both of them function exactly the same but the tkinter version is just not as fast. Version made with ...
If you are running into the following error (Adept, or other programmer), here is how to fix it in Xilinx. I came across this issue when using my Basys 2 and trying to load a bit file with Digilent's Adept programmer. It is only a compatibility issue with the bit file and FPGA board. Startup clock for this file is'CCLK' instead of 'JTAG CLK'. Problems will likely occur. Associate config file with device anyway? In the Processes pane, select Generate Programming File Then go to Process -> Process Properties -> Startup Options -> FPGA Start-Up Clock and change it to JTAG CLK. Click, OK. Then re-generate the programming file and program your board.
Coherent UI developed by Coherent Labs is a fully featured GUI system for any Unity (or .NET) game that utilizes the power of HTML, CSS, and Javascript. Use any bleeding edge HTML5, CSS3 features that run on webkit and any javascript libraries you need. It is literally as easy as making a web page on Chrome. It also utilizes the webkit debugger (just like chrome) so it is easy find the root cause of any problem. Watch on YouTube The video (see video description for timestamps) explains the whole process but here are some nice references. Notes: Only works with Unity Pro This is because Coherent UI is a Plugin which means it is written in native code (C, C++, ...
Basic <Directory> tag explanation Here is a sample script allowing all users: <Directory "/var/www/static/"> Options -Indexes Order deny,allow Allow from all AllowOverride All Require all granted </Directory> Options -Indexes: Removes the ability to view all files in directory if index html or php are not present Order deny,allow: Applies the deny operations before the allow operations AllowOverride All: Allows .htaccess to override settings in httpd.conf, etc Require all granted: some mod_authz_core thing. Not completely sure. Create password protected Directory or Location: # PW protect URL <Location "/secret-stuff"> AuthType Basic AuthName "Private Directory" AuthUserFile /etc/httpd/.htpasswd Require valid-user </Location> # PW protect directory <Directory "/path/to/directory"> # ... Look above </Directory> AuthType Basic: Set the Basic authentication method AuthName "Private Directory": Provide a ...
This is a basic guide to get django running with WAMP. This tutorial was written with Python 2.7.5 and django 1.5 in mind but applies for all versions. Use Windows command prompt (cmd) whenever it says to use a command. I suggest using this command prompt alternative. Basic Setup: Install WAMP Get mod_wsgi module for apache. I suggest getting it from here. Add mod_wsgi.so to C:\wamp-2-4.64bit\bin\apache\Apache2.4.4\modules Add the line in httpd.conf: LoadModule wsgi_module modules/mod_wsgi-ap24-py27.so Install Python 2.7.5 because Python 3.3 does not have enough supported packages Install virtualenv (python package) using this command: pip install virtualenv Create a folder called www-src alongside your wamp www folder and navigate to it in cmd using this command: cd C:\wamp-2-4.64bit\www-src Create a new ...