An exercise in typecasting:
double freq = 3;
long period = 1000/freq;
period will hold the value 333.
Wednesday, 27 August 2014
Interrupts for Arduino
Interrupts for Arduino:
http://arduino.cc/en/Reference/AttachInterrupt
Extension that allows other pins to be used as interrupts (by default, only select pins can be used). See the previous link for the pins that are enabled by default.
http://playground.arduino.cc/Main/PcInt
http://arduino.cc/en/Reference/AttachInterrupt
Extension that allows other pins to be used as interrupts (by default, only select pins can be used). See the previous link for the pins that are enabled by default.
http://playground.arduino.cc/Main/PcInt
Friday, 8 August 2014
Arduino (AVR) error - avrdude: stk500_getsync(): not in sync: resp=0x00
In the context of Arduino, this error occurs when there are issues writing your program to the microcontroller.
Although there seem to be multiple potential sources to this problem, the mistake that I often find myself making is interfering with the RX/TX connections.
Therefore, try uploading your sketch after disconnecting any wires from digital i/o pins 0 and 1 (or whatever corresponds to RX/TX).
source: http://www.instructables.com/answers/avrdude-stk500getsync-not-in-sync-resp0x00-/
source: http://www.instructables.com/answers/avrdude-stk500getsync-not-in-sync-resp0x00-/
Wednesday, 6 August 2014
Scanning physical documents using the Xerox Workcentre 5755
@EPFL, 2014. Actual instructions may vary.
- Next to the touchscreen, press the round, engraved home button.
- On the touchscreen, press the 'email' button.
- Type in the email address you want to send the documents to.
- Scan each document by placing the paper inside the machine and pressing the green scan button.
- If the machine is shared, remove your email address for others' future use by holding down on the touchscreen and pressing remove.
Source: Merve
Tuesday, 5 August 2014
Change Language in SolidWorks to English
Where you looking to change the language. SW will use the language you specified during installation. If you looking to use English (thought you have installed a differnt language), then go to Tools > Options > General and select the following two options:
1. Use English language menus. (Available if you specified another language during installation and the regional options in the Windows Control Panel are set to that language).
You must exit and re-start SolidWorks for this change to take place.
2. Use English language feature and file names. (Displays feature names in the FeatureManager design tree and automatically created file names in English. Existing feature and file names in a foreign language do not update when you select this option).
This option is available when Use English language menus is cleared, you are running the SolidWorks software on a foreign language operating system, and you installed SolidWorks for that foreign language.
source: https://forum.solidworks.com/thread/38613
Subscribe to:
Posts (Atom)