HackerSpaces around the World and in Particular Brazil
Research Links
- HackerSpaces that are open to "residencies" – a map – there is a list below
Brazilian HackSpaces
- Concas HackerSpace – Concordia SC
- Area 31 – Belo Horizonte, MG
- HackSpace Maringa, Parana
Eagle PCB ULP Tutorial: Using NotePad++ to Write ULP and highlight Code
Research Link
From the ReadMe.txt file
Notepad++ has a User Defined Language facility that is documented in its help files and at the NpWiki++: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Languages
The file "Notepad++ UserDefineLang for Cadsoft ULP v0.1.xml" contains a beta release of a Notepad++ user defined language corresponding to ULP for Cadsoft Eagle v5.
This language defintion may not always correctly display ULP keywords, for example, owing to white space or your variable names.
To use this langauge definition in Notepad++ click View | User-Defined Dialog | Import and select the XML file. Now when editing a file with extension .ULP the Eagle
ULP keywords should be formatted according to the styles in the User-Defined dialog.
In order to have Notepad++ automatically open the ULP file and position the cursor on the line of an error in a ULP, you need Eagle V5.5 or later.
Set the Eagle Options | User Interface | External Text Editor field to (include the quotation marks and edit the Notepad++.exe location to suit your installation):
"C:\Program Files\Notepad++\Notepad++.exe" -n%L "%F"
Please refer to "Help | Editor Windows | Text Editor" in the Eagle help files for more information.
Implementation Notes
- I am not sure but I think that Windows 7 prevents writes to the NotePad++ files that save the setup. I ended up taking ownership of the directory that holds the NotePad++ installation.
- When I tried to use I could not get the text to highlight in color. The italics and bold fonting worked but not the color. Fix this by going into the "style configurator" of NotePad++ and unchecking "Enable global foreground color"
Running ULP from within NotePad++
Next I want to be able to execute the ULP from within NotePad++. To do this I need to be able to
- run eagle and the ULP from the windows command line. Example: eagle -C "run bom_ew bla; quit" qm07_blm.sch … this particular line also terminates eagle which I probably will not use.
- See the output of the script from within NotePad++
Execution from within NotePad++: You can run eagle from a dead start using Windows 7 command line. See Running Eagle ULP from windows command line and terminating eagle when done .
FIX: I find Googles Omnibox search page annoying because it appears to coerce only 10 result searches
Research Links
- The fix
- In the address bar type: chrome://flags/
- then hit return
Change its setting from Default = disabled
Google is shaving nickels it appears. They save on electricity when they return only 10 results versus 100 results. However I do esoteric searches that require big result sets.
Eagle PCB ULP Tutorial: User Language Program that lists the library .lbr files in project directory
I want to be able to write a script to mass change all the libraries that a project depends on in order to make better B.O.M. Bill Of Materials. The following script lists the libraries in the project directory. It writes the names of the libraries with full path to a text file named: ListOfLibraries.txt
//—— Get the Project Path ——//
string Project_Path;
string get_project_path() {
if (board) board(B) return(filedir(B.name));
if (schematic) schematic(S) return(filedir(S.name));
if (library) library(L) return(filedir(L.name));
}
Project_Path = get_project_path();
dlgMessageBox(Project_Path, "+Yes", "No","Maybe");
string F[];
int i;
int n = fileglob(F, Project_Path + "*.lbr"); //– Get file names with .lbr extension in project directory
output(Project_Path + "ListOfLibraries.txt", "wt"){ for(i=0;i<n;i++){ printf(F[i] + "\n");} } //– Write all the .lbr file names to text file
string ResultOfLibCount;
sprintf(ResultOfLibCount, "The number of libraries is %d", n);
dlgMessageBox(ResultOfLibCount, "+Yes", "No","Maybe");
fileglob stuffs an array with the files that satisfy the condition specified by the string supplied.
My First IC Design: LM317
The challenge: Reverse engineer the LM317 regulator using SPICE and the LM317 datasheet.
- http://www.electro-tech-online.com/general-electronics-chat/18270-lm317-spice-model.html – transistor level model of LM317
- http://forum.allaboutcircuits.com/showthread.php?t=12152&page=6
- QUCS has an example analysis of the LM317.
