Posts

Micros() returning bad data in interrupt

i'm developing code motor controller we've constructed scratch. in order motor controller operate correctly, need calculate realtime velocity of motor. done recording time between ticks of encoders. during operation, velocity seems on place. narrowed down issue times being returned micros() function in interrupt being triggered encoders. in effort debug, created following code output of times being recorded when interrupt fired. code: [select] #define max_power 255 // // pin definitions // #define encoder_a 2 #define encoder_b 3 #define motor_current_1 a0 #define motor_current_2 a1 #define motor_voltage   a2 #define motor_direction 10 #define motor_pwm       11 #define motor_fault     12 #define motor_enable    13 // // buffer // volatile uint16_t = 0; const uint16_t max_records = 200; volatile unsigned long time[max_records]; void setup(){   serial.begin(115200);   // pin setup   pinmode(motor_dir...

Getting error running processing code from example08a

i'm getting error when try running code example 08a: arduino networked lamp (processing code). error "cannot find class or type named "url". stops @ line code: [select]     url url = new url(feed);  // object represent url this whole code code: [select] // example 08a: arduino networked lamp // parts of code inspired // blog post tod e. kurt (todbot.com) // // copy , paste example empty processing sketch import processing.serial.*; string feed = "http://blog.makezine.com/index.xml"; int interval = 10;  // retrieve feed every 60 seconds; int lasttime;       // last time fetched content int love    = 0; int peace   = 0; int arduino = 0; int light = 0;  // light level measured lamp serial port; color c; string cs; string buffer = ""; // accumulates characters coming arduino pfont font; void setup() {   size(640,480);   framerate(10);    // don't need f...

installing gigCal - Joomla! Forum - community, help and support

hi, need user-changeable calendar, , gigcal along addon "frontend" seemed fit bill, but... having downloaded gigcal, unzipped gave me 4 other zips:com_gical-1.0.2.zip, gigcal.searchbot-1.0.zip, mod_gigcal_minical-1.0.zip , mod_gigcal_upcom-1.0.zip. i managed install 2 modules through usual install->module->upload , install, can't install other two, tried uploading , installing both components , modules.  can please? also, addon brings me site: http://www.123joomla.com/descargas/sef/ ... argas.html   it's in spanish, can't figure out wants me do, can't download file, supposed install directory? thanks in advance. Board index Joomla! Older Version Support Joomla! 1.0 Extensions - 1.0.x Modules

Safari and Mac OS X

Image
does webhelp work using safari browser , mac os x? when accessed, toc pane displays empty. greatlt appreciated. thanks, lisa lisa, are generating skin? which option using on dhtml-applet-plain html dialog? safari display webhelp, toc/index/search functions different. harvey More discussions in WebHelp adobe

PWM pulsing LED hooked up to DAC and Oscilloscope

i have spi bus connecting arduino, xmega xprotolab mini oscilloscope , ad420anz 16-bit dac. led connected potentiometer varies frequency 1-4 hz, pulsing of led speeds , slows down potentiometer turned. (the led in pin 9, using pwm pulse) currently, have led hooked oscilloscope in channel 2 5v arduino in channel 1, , can see difference between pwm of led (on lcd can see duty cycle speed turn frequency up) , 5v analog signal oscilloscope (oscilloscope has built in dac converting 5v). i wondering if feasible connect led dac, have convert signal digital analog, shift data dac oscilloscope via spi bus? want able compare 2 analog signals, not analog , digital signal. also, using shiftin() , shiftout() work in case? you want compare 8-bit, 490 hz pwm led, brightness controlled variable width pulses, against 16-bit, spi @ 4 mhz dac output, changing dc level? Arduino Forum > Using Arduino ...

Changing Directory

right code allows me upload temp directory. change directory path. how can change this? below code working with. ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------ <cfparam name="dir" default="#gettempdirectory()#"> <cfset thistemplate=getfilefrompath(gettemplatepath())> <cfif listlast("#dir#","\") "."> <cfset dir=getdirectoryfrompath(dir)> <cfelseif listlast("#dir#","\") ".."> <cfset dir=getdirectoryfrompath(left("#getdirectoryfrompath(dir)#",len(getdirectoryfrompath(dir) )-1))> </cfif> right code allows me upload temp directory. change directory path. to upload arbitrary directory, say, c:\myuploads\, put (full) path in tag cffile, value of destination attribute. example, <cffile action = "upload" filefi...

Format ALL text fields?

hi - i've searched everywhere , can't find answer this, appreciated. have movie multiple dynamic text fields. these text fields drawn movie @ frames (not created using as). text being dynamically created using flashvars. i have global audience , dynamically embed fonts depending on country. so, flashvars section of html, have: font=embed or font=noembed (depending on country html file delivered to) so, i'm using _sans default font on textfields (set in property inspector). i've got code in first frame of movie: onenterframe = function (success) { if (_root.font == "embed") { textmc.text.settextformat(embedformat); textmc.text.embedfonts = true; } } var embedformat:textformat = new textformat(); embedformat.font = "luzsans-medium"; this working great single text field. however, i'd able set text format text fields in movie, rather having set each text field separately. there way this? way, because of target audience, need publish fl...