Posts

Showing posts from June, 2010

DMX simple - modifying the break

i'm using dmx simple library control rgb leds. leds dont dmx arduino. the manufacturer stated following: the problem "space" break of tristar-rgb-dmx, 500.  the standard dmx "space" break 88~144, dmx controllers handle wide range of 88~1,000. so @ point, unless can our engineers change "space" break, need dmx controller can handle 500. i've had @ dmx simple code, i'm out of depth, looks me important section: /** transmit complete dmx byte * have no serial port dmx, timed using exact * number of instruction cycles. * * suggest don't touch function. */ void dmxsendbyte(volatile uint8_t value) {  uint8_t bitcount, delcount;  __asm__ volatile (    "cli\n"    "ld __tmp_reg__,%a[dmxport]\n"    "and __tmp_reg__,%[outmask]\n"    "st %a[dmxport],__tmp_reg__\n"    "ldi %[bitcount],11\n" // 11 bit intervals per transmitted byte    "rjmp bitloop%=\n"     // delay 2 clock...

Thread: Removing ubuntu's default hard drive labels

Image
after digging, if i've gotten right "***gb media" label of hard drive. want rid of "naming/labelling" drive after folder mount in. i've done searching about, didn't find great documentation on topic, if care guide me through or in right direction, swell. cheers posted bohemenian after digging, if i've gotten right "***gb media" label of hard drive. want rid of "naming/labelling" drive after folder mount in. i've done searching about, didn't find great documentation on topic, if care guide me through or in right direction, swell. cheers give drives labels, if have gparted installed, use partition editor add labels drives formated ext3. change ntfs drive lables, install ntfsprogs , use ntfslabel change labels. both packages can installed using add/remove applications or syanpt...

LED compass

for school project, making led compass, in sense have compass sensor, accelerometer, , ring of charlieplexed leds on sleeve of sweatshirt.  i want led closest north lit up, when board held level.  the problem slightest variations in roll or pitch throw off compass readings much, starting seem infeasible.  my current source code follows. code: [select] #include <wire.h> #include <charlieplex.h> #define number_of_pins 4 int valy;                                        // variable y data stored   int valx;                                        // variable x data stored int accely = 1;                                  // setup pin assignment y data int accelx = 2; ...

raspberrypi login - Raspberry Pi Forums

Image
ive hooked pi tv first time. lights showing theres power there on tv asking raspberrypi login? know should here new type of stuff btw my suggestion log in can find username/password information distro on download page . once log in, if want see traditional graphic environment can enter "startx" doesn't make use of gpu processor on pi yet little slugish depending on you're trying there. if you're comfortable bash prompt (the not graphical environment) stay out of startx. it's lot more difficult, helps learn linux quickly! raspberrypi

need a bit of itoa help

hi all, need advice on converting series of ascii ints number make (e.g. 49 48 48 >> 100). i'm reading data digital compass (heading, pitch, & roll) using newsoftserial. i've been passing data uart tx , that's that. want use data onboard processing. packet compass 3 floats, separated commas, ending in both carriage return , line feed. heading positive (0. - 360.), pitch , roll positive or negative (-90. +90, -180. +180., respectively).  breaking packet isn't difficult commas , line feed. hurdle converting "49 49 48 46 53" "110.5", , using float in other calculations on arduino. itoa use on mac side...and seems should use on arduino side, i'm not finding info, , attempts far won't compile. advice on references or example code...or different method? thanks in advance! david i believe you're looking [glow]atof[/glow].  it's in [glow]stdlib.h[/glow]. good luck, brian ...

Thread: SPDIF Not Working after Motherboard Upgrade

Image
hello all, have upgraded motherboard , cpu on media centre amd 3800/gigabyte ga-ma770_d3 phenom 810/asus m4n78 pro. took liberty change main hard disk, because recording wimbledon every night chews space little far, have fixed fstab, grub, , networking (udev problem), of yet, have not yet gotten s/pdif (optical audio) working on new motherboard. have tried enabling iec958 in alsamixer, worked nicely old mobo, no luck one. should mention using s/pdif on panel , not using hdmi (i have nvidia 7300 plugged in component video) help: code: damien@mediabox:~$ aplay -l **** list of playback hardware devices **** card 0: nvidia [hda nvidia], device 0: vt1708s analog [vt1708s analog] subdevices: 2/2 subdevice #0: subdevice #0 subdevice #1: subdevice #1 card 0: nvidia [hda nvidia], device 3: nvidia hdmi [nvidia hdmi] subdevices: 1/1 subdevice #0: subdevice #0 code: damien@mediabox:~$ lsmod | grep snd snd_hda_intel ...

Resize Bounding Box After Image Is Loaded

i developing gallery , close being done... using movie clip loader class determine when image loaded before fading in. below code have image border resize...however, not transition ( http://www.rainnetworks.com/betasites/rn/gallery/ )... thoughts? your movie clip has instance name of '_mc' More discussions in ActionScript 1 and 2 adobe

for statement as a timer

hi, my statement not working. suppose loop time delay , while looping check see if sensor on irpin goes low. problem won't loop delay keeps breaking out of for. helpful. randy for (int i=0; <= 5000; i++) {             // timer loop break out if irpin 5 goes low                                   sens = digitalread(irpin);     if (sens == 0) {   break;   }                 // bail out on sensor detect   } don't know how of delay expect, 5000 iterations won't take long execute -  a small fraction of second, small amount of code that's executed in yours. -j Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs ...

Arduino Uno with Valco Multiposition Valve

hello, i research student @ arizona state university , lab working on "switching unit" (which part of water-testing device developing), composed of valco multiposition valve , arduino uno micro-controller. essentially, having trouble finding out right command use send string multiposition valve (for example: string "go11" tell device switch valve 11). to connect arduino multiposition valve, have bought rs232 shield arduino (since multiposition valve uses serial connection). sadly, none of experienced in programming. awesome if help! so far, have tried using: serial.println("go11") serial.print("go11") serial.write("go11") however, none have worked. note: able use labview's visa set connection multiposition valve. , using visa's "write", able send string valve , valve switch corresponding position wanted. therefore, there nothing wrong multiposition valve. what baud rate using? did serial....

comment eteindre dans les règles de l'art? - Raspberry Pi Forums

bonjour, toute la question est dans le titre. ne connaissant que très peu de choses à ma rasp (mais je m'y met !) et linux en général, je me rends compte que chaque fois que je l'eteint ... ben, je débranche. si je faisais cela windows, il y bien longtemps que j'aurais plus de windows! ma question est donc la suivante: y t-il une commande pour l'éteindre "proprement"? merci. bonjour oliv44 bien sur qu'il y une commande pour ça: sudo shutdown -h now tu peux aussi spécifier d'éteindre dans 5 minutes en replaçant par +5 ou encore redémarrer en utilisant -r plutôt que -h. man shutdown te donnera la liste des options. mélanie raspberrypi

Spry Menus Search Engine Friendly?

in past 1 discouraged using javascript anf dhmtl menus since not search engine friendly. how new cs3 spry menus? "triplets" <webforumsuser@macromedia.com> wrote in message news:f344rd$olm$1@forums.macromedia.com... > in past 1 discouraged not use javascript anf dhmtl menus > since not search engine friendly. how new cs3 spry > menus? out of box can indexed search engine's spiders fine. -- ---------------------------- massimo foti, web-programmer hire tools coldfusion , dreamweaver developers: http://www.massimocorner.com ---------------------------- More discussions in Dreamweaver support forum adobe

Temperature sensor + Leds

Image
hello! i came idea use temperature sensor , leds indicate temperature value. found ladyada-s tutorial http://www.ladyada.net/learn/sensors/tmp36.html , , want add leds, when temperature under 0 degrees blue led on , when temp over 0 degrees green led on , when over 20 degrees red led on . have no idea, how integrate leds temperature code. maybe here can help.. code: [select] //tmp36 pin variables int sensorpin = 0; //the analog pin tmp36's vout (sense) pin connected to                        //the resolution 10 mv / degree centigrade a                        //500 mv offset allow negative temperatures #define bandgapref 14   // special indicator want measure bandgap /* * setup() - function runs once when turn arduino on * initialize serial connection computer */ void setup() {  serial.begin(9600);  //start serial connection computer   ...

How to wrap it up? - Joomla! Forum - community, help and support

Image
hello all! is there tutorial explains how prepare customized "joomla" install? i have been working on "joomla" community group.  have made customizations in template adding (and removing) modules , module layout of site. i have added gallery2 site.  there less complex picture gallery add provide random image mod?? anyway, wrap in way installed on server running php , mysql. anything @ helpful. thanks in advance. wp1 hello all! no one   has suggestions?    wp1 Board index Joomla! Official Sites & Infrastructure Sites & Infrastructure - Feedback/Information Archived Boards - All boards closed Joomla! 1.0 Coding

Hvad er bedst: UddeIM eller MyPMS? - Joomla! Forum - community, help and support

Image
jeg vil gerne høre hvilke erfaringer har med @ vælge mellem uddeim og mypms - og hvilken ville vælge.  det skal køre sammen med community builder og joomlaboard på http://www.bryllup.dk du kender godt min mening: uddeim way, også selvom den ikke umiddelbart understøtter joomlaboard. det sidste burde dog være en forholdsvis let sag @ hacke sig ud af. Board index Joomla! International Language Support International Zone Danish Forum Ældre versioner (disse vedligeholdes ikke længere fra officiel side) Joomla 1.0 (Udgået version, der blev afløst af 1.5 i 2008) Komponenter, Moduler og Mambots

Overscan options on composite out - Raspberry Pi Forums

given recent demise of ceefax, , switching off of last analogue public broadcasting transmitter in uk, i'm feeling nostalgic , want recreate in it's former glory. teletext transmitted using non-visible lines in video signal (does not have tuner, it's encoded video signal). having read through standards, thought generating video signal kind of 8-bit micro. however, micros don't have enough memory , quick enough clock spit out teletext data colour video signal. done, i'm sure, seems rather lot of effort.. happened upon this: http://al.robotfuzz.com/generating-tele ... -software/ occurred me, on rpi quite - didn't know if there obvious way of setting video mode such can render onto overscanned lines. also, it'd mean render other stuff normal video signal thoughts? interesting, i'd see if work. raspberrypi

Recording live broadcast

my company uses broadcasts include both streams (coming different users , displayed together), animations amd images mixed on flash player. you can think of kind of flash presentation mixed web meeting. we record broadcast single video file (flv, quicktime, etc.) , streaming file on demand our fms. i looking way record broadcastig viewer sees when looks @ boradcast. you can't sort of screen capture or that. can use netstream.send trigger events in client. let's say, example, have function in actionscript named playanimation(), , stream named somestream. trigger function, code might this: client side: function playanimation(){ // here } my_netconnection.triggeranimation = function(){ playanimation(); } on server side: application.tellclienttorunanimation = function(){ somestream.send('triggeranimation"); } now, when server side function called, message goes out across stream, , tells client run function. now, here's gets cool. if you're recording stream,...

Thread: Can't switch language = Can't Login!

i have ubuntu 8.10 along windows xp installed on pc. on ubuntu have 2 languages(english , arabic), english default language. yesterday working on ubuntu, today out of sudden, when start ubuntu, default language in login screen arabic. problem can't change language means can't enter user name , password in english. tried alt+shift, tried "select language.." login screen menu.. nothing changes, ubuntu stuck arabic. strange thing didn't touch language settings yesterday, didn't install anything.. on internet , using editors! how can fix this? if can't work, can files stored in ubuntu file system back? thank you can files back. , fix problem, please check if have older kernel in grub. Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Can't switch language = Can...

.pde preprocessor

i looking how make wizzard turn .pde file  .cpp files can debuged using debugger. in such way don't see (lot of) difference original .pde file. i ascertained use following turn .pde .cpp: ---------------------------------- #include "wprogram.h" <-- prototypes sketch code contents of main.cxx ---------------------------------- and prototypes of functions extracted automatically , put between #include "wprogram.h" , "sketch code". did forget something? for debugging change main.cxx in seperate .o file. , put prototypes in wprogram.h (only debugging). so get: ------------------------------ #include "wprogram.h" sketch code ------------------------------ and #include "wprogram.h" can treated white space sketch developper. or should be: ---------------------------- code main.cxx sketch ----------------------------- as notice #include <wprogram.h> in main.cpp Arduino...

CFsearch as datasource

is there way turn cfsearch results dynamic datasource can used spry datasets? return cfsearch result spry table, having mental block on possible solution. i've thought of creating static xml page search results, sounds clunky. ideas out there? thanks, from documentation seems should able use <cfcollection action="list"> in conjunction code converts cf recordset xml (i've seen custom tags floating around that). you'll have make sure format xml in way work spry (spry doesn't play many nested elements). More discussions in Advanced Techniques adobe

Hoe gebruik ik de blog functie - Joomla! Forum - community, help and support

hey allemaal, sinds vandaag met joomla! aan de slag gegaan, omdat ik wil gaan bloggen. na veel gemier met de interfaces vraag ik mij af: hoe kan ik als normale user die ingelogd berichten posten in de blog? als ik inlog staat er in mijn usermenu namelijk geen optie om een blog-item toe te voegen. ook vind ik het hele module/section verhaal erg vaag.. kan iemand mij kort inleiden in hoe te bloggen met joomla!? dwz: - blog instellen - berichten posten alvast bedankt! groeten, jorne ps: wat ik nu van joomla! heb gezien ziet er super uit! soms alleen wat onduidelijk vind ik.. bloggen niet echt wat je doet met joomla! de blog sectie eigenlijk een verzamelink van berichten die je in kunt stellen in de admin. eerst moet je echter berichten toevoegen (news bv) en dat kan in de admin of in de usermenu. in de admin stel je dan bij de eigenshappen in waar de blogsectie de berichten weg moet halen. ik hoop dat dit helpt, ik gebruik het zelf nooit namelijk. Board index ...

usb communication

hi, i'm newbie in arduino programation en c (done 20 years ago @ school lol). i've made plugins x-plane send data on usb , arduino have pick info , screen on lcd information. that works need popin serial monitor. indeed if not start it, information not work !!! why ? for exemple send on usb mac arduino these words :"speedbrake arm" or "speedbrake full". the result should on lcd 20*2 speedbrake arm or speedbrake full, depend on send usb. it works have start arduino screen usb monitor. indeed must start serial monitor screen of arduino, send speedbrake arm; lcd shows arm well. but show full must close serial monitor , restart when send speedbrake full full print on lcd correctly. do know why? have clue ? thanks in advance ounet here code #include <stdio.h> #include <string.h> #include <liquidcrystal.h> liquidcrystal lcd(12, 11, 5, 4, 3, 2); int ledpin = 13; char indata[30]; int count = 0; void setup () { pinmode(ledpin,output); se...

Cancelling the Color Eyedropper

so i'm brand new dwcs3 , i'm using external css styling/layout of page. i'm new css why i'm going crazy this. i select change color of, example background-color, realize i'm selecting color text – or in event i"ve selected wrong attribute. don't want change color. there anyway stop transaction? normally press esc – way in flash – , cancel color selection , allow me go business. doesn't seem work. i'm using dwcs3 on mac 10.4.9. appreciated. let erroneous transaction complete , "undo" "rothrock" <webforumsuser@macromedia.com> wrote in message news:f29sqv$5up$1@forums.macromedia.com... > i'm brand new dwcs3 , i'm using external css > styling/layout of page. i'm new css > why i'm > going crazy this. > > select change color of, example background-color, > > realize i'm selecting color text ? or in event > i"ve > selected wrong attribute. don't want change colo...

Pushing binary functions from the Arduino Rx port.

so i'm trying use arduino push binary commands mp3trigger via serial, have simple stuff working can't seem volume changes need. think it's issue code, , fact can't seem volume data out unsigned single byte. i've been discussing on makerjam forum here too: http://makerjam.com/forum/mp3-trigger/volume-fade-on-mp3trigger/ this i'm @ code. code: [select] int duration = 10000; int increment = duration/100; int volume = 0; void setup(){ serial.begin(38400); serial.write('t'); serial.write(1); } void loop()  { if (volume < 40) { turndownvolume(); delay(increment); } } void turndownvolume() { volume += (40/40); char vol[10]; itoa(volume, vol, 10); serial.write('v'); serial.write(volume); } quote i can't seem volume data out unsigned single byte code: [select] int volume = 0; maybe if unsigned byte begin with? quote can't seem volume changes need. this doesn't tell changes do need, , how ones obtain differ i...

[Solved] LED bar...but inverted !?

:-? hi all, im new here , new world of microcontrollers. so did do; bought arduino board play around with. nothing difficult, nothing specific. so found knight rider thingie on forum somewhere in old topic. upped code arduino, wired leds n resistors way should and...... ....the leds light up, , knight rider effect running...but inverted. mean there should light running left right , vice versa....but in case al lights on , 1 goes off left right , vice versa... this code used...: code: [select] int ledpin[] ={3,5,6,9,10,11}; int n = 0; //speed counter. int =0; // repeater. int value[] ={0,0,0,0,0,0}; void setup() { } void loop() {  if(n == 100){value[0]=255;}  if(n == 200){value[0]=255;}  if(n == 300){value[1]=255;}  if(n == 400){value[2]=255;}  if(n == 500){value[3]=255;}  if(n == 600){value[4]=255;}  if(n == 700){value[5]=255;}  if(n == 800){value[5]=255;}...

Thread: Crash during update from 8.10 to 9.04 - ubuntu now borked

fixed! found thread describing commands needed restart update process running update on laptop today intrepid jaunty part way through - believe installing packages - computer decided turn off. i've been having issues heat , think bios pulled plug prevent heat stroke. now, when boot up, imagine new login splash, can log in, plain background (same colour had in intrepid). can bring terminal using super-t suggestions? can repaired or looking @ backing via terminal , starting scratch? Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] Crash during update from 8.10 to 9.04 - ubuntu now borked Ubuntu

Thread: How the heck do I install flash?

Image
i've tried every forum, every distro, every way... why can't flash install? grrrr! absolute newbie ubuntu... seems pretty cool browsing nowadays pretty useless without flash in firefox!!! please! thanks! go website http://get.adobe.com/flashplayer/?promoid=buigp download .deb file. when downloads have double click .deb file , install you. Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] How the heck do I install flash? Ubuntu

Save Password? - Joomla! Forum - community, help and support

Image
well when go 'your details' section on site , try change password, fill in password parts , cicik save, doesnt anything... in bottom bar of internet, location is... javascript:submitbutton('save'); btw before got rid of username input, got rid of form, make difference? certainly does, have have form javascript submit form louis Board index Joomla! Older Version Support Joomla! 1.0 General Questions - 1.0.x

Starting bare metal... - Raspberry Pi Forums

Image
i know there website mentioned elsewhere course on bare metal programming on pi... i've been looking @ dexos website. if go down dexos route (for now), @ disadvantage in terms of performance hit etc? harder address hardware or call gpu stuff without c compiler there? thanks! it not matter how program 'bare metal' in c or assembler. ease of writing c easier , should performance issues can add assembler routines if needed. gcc can mix them without problems. programming gpu have dig in deep, adding opengl lib lot easier. in experiments using simple 16 bit framebuffer handled cpu only. tip writing , testing bare metal: usb 3,3v serial adapter, connect mini-uart pins of pi , use dwelch67 serial bootloader on sd card , terminal program on pc. sturdy switch in power cable pi must! without these end compiling, copying sd card, insert sd card in pi, reboot , test, remove sd card, compile, reprogram, ad nauseum.. wear out cardslot of pi , slow... happy programming! ...

russian text

i'm trying make web page asp/vbscript gets russian text a mysql database , puts onto webpage, ado calls return question marks there should russian text. i have used server.codepage=65001 , response.charset = "utf-8" no avail. could pleae give advice. thanks dave hi, maybe helps, although it´s how solved problem php: i once had develop russian website displaying contents mysql well, , had same issue: 1. setting page´s charset right (<meta http-equiv="content-type" content="text/html; charset=utf-8">) 1 thing, didn´t getting rid of ??? 2. additionally wrote php function function russki ($string) { echo htmlspecialchars($string, ent_compat, "utf-8"); // render mysql contents ent_compat , utf-8 } and succeeded displaying recordset contents applying function it:. russki($queryname->fields('fieldname') "htmlspecialchars" , "ent_compat" of course native php functions, else have tell if simil...

multiplication error using long variable

i have variable greater 32,767 can't use int type. instead use long, strange error when multiplying long variable. for example, variable called 'product' , @ point set product = 1087 * 44. expect product = 47828 instead product =-17708! what going on here? here sample code shows problem i'm encountering: code: [select] long product = 0; void setup(){     serial.begin(9600); } void loop(){     product = 1087*44; //this should return 47828 instead returns -17708     serial.print("1087 * 44 = ");     serial.println(product);     delay(5000); } if way correct result however: code: [select] long product = 0; void setup(){     serial.begin(9600); } void loop(){     product = 1087;     serial.print(product);     serial.print(" * ");     serial.print(44);     product=product*44;     serial.print(" = ");     serial....

Graphing temperature with processing problem!

Image
alright current set arduino duemilanove 2 buttons 3 led  a fan , temp sensor code set run speed of fan @ speed depending  on temp have low , high set point. these 2 set points changed using buttons odd reason every time  my temp either gets hot or lower set point low arduino stops reading values , graph stops giving me data   i'm sure problem arduino code i'm posting thx int sensorpin0 = 0, ledpin = 9, sensorpin = 3, x = 0, press=0, press2=0, sensorpin2=10, th=25,tl=23; double t;                         void setup() {  serial.begin(9600);                        pinmode(7, output);  pinmode(6, output);  pinmode(5, output); } void loop()                     { int reading= digitalread(sensorpin);  while(reading>0)  {    reading= digitalread(sensorpin);    press++;    delay(100);  }  if (press>1){x++;  press=0;}    int reading2= digitalread(sensorpin2);  while(reading2>0)  {    reading2= digitalread(sensorpin2); ...

linking from one page to another - Joomla! Forum - community, help and support

Image
greetings all i have created 3 statis content items. now, 1 links menu other 2 link within current page. how go linking static content item within page? have used linking such: index.php?option=com_content&task=view&id=33&itemid=11 but when using this, clicking on generates page says: you need logged in access resource. there no security setting on of content not sure why message generated. thing can think of doing linking wrong. any ideas? thank in advance. i think there 2 possibilities: 1. static content item published registered users (if so, make accessible pubic) or 2. static content item checked out (locked) (if so, make global checkin). Board index Joomla! Official Sites & Infrastructure Sites & Infrastructure - Feedback/Information Archived Boards - All boards closed Joomla! 1.0 Coding

RCA output not working - Raspberry Pi Forums

Image
just go pi. after setting sd card use debian, i've connected tv. works fine hdmi cable, when try connect through rca cable won't work. aware use rca, should disconnect hdmi cable that's not problem. also, i've set video mode "sdtv_mode=3" since live in brazil. ideas might problem? here's config.txt in case may help: # uncomment if no picture on hdmi default "safe" mode #hdmi_safe=1 # uncomment if display has black border of unused pixels visible # , display can output without overscan #disable_overscan=1 # uncomment following adjust overscan. use positive numbers if console # goes off screen, , negative if there border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment force console size. default display's size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display not detected , composite being output #hdmi_force_hotplug=1 # uncomment force sp...

Minimizing file size for Flash

i have made demo 10 minutes long 80 slides, 95% screen shots, 3 slides text animation. trying enhance download time web page. how following effect file size , download time. 1) time spent on each slide. should try reduce time spent on each slide? 2) there compressor tools compress published flash file? 3) advanced methods , tips minimize file size? (deleting unused images, jpeg quality 50%, altering color gradients, etc...) bandwith summary- size (uncompressed) 3438 kb 6 k/s video (uncompressed) 3437 kb 6 k/s time 9:30 lowest stream broadband frames: 17115 (30 fps) resolution 790x 555 cff2880-- without seeing source, have getting 80 slides 10-minute demo , having compress 3.4mb pretty reasonable as-is. the time spent on 1 slide doesn't impact size of swf -- display 1/10th of second or 10 seconds , ought have same results: has downloaded 1 way or other...and once has, can show long like. there 3rd-party flash compression tools, they're not helpful captivate output. m...

analogRead from potmeter doesn't work correctly?

i busy playing new motorshield adafruit, i've modified code control dc motor bit can control speed of motor 10k potentiometer, here code; code: [select] #include <afmotor.h> af_dcmotor motor(1, motor12_64khz); int potpin = 0; int var0 = 0; void setup() { } void loop() {  var0 = analogread(potpin);  motor.setspeed(var0);  motor.run(forward); } but, (there's but, no exceptions) when turn pot clockwise motor off, when turn pot ~25% it's @ maximum speed , when turn @ ~26% it's off , @ ~50% it's @ maximum speed , when @ ~51% off, continue's till 100%. if use 10 ohm pot motor stops when turn pot clockwise , when turn max, nothing happens, takes 15 seconds before starts @ maximum speed (like it's hanging or something). can me problem? the analog input 10-bit value ranging 0 1023.  the range var0 apparently smaller.  from description, 25%, etc, seem take byte input (0 255 range).  so after "var0 = analogread(potpin);...

How are registers saved in interrupts?

Image
i reading article:   http://www.uchobby.com/index.php/2007/11/24/arduino-interrupts/  where trying see how main program slows down while high-frequency interrupts running. it seems there little overhead in addition user-supplied interrupt service routine. how possible?    one might expect plenty of stuff (program counter, status/flag registers, 32 cpu registers) has pushed popped stack main program able continue if nothing happened. is there smarter solution implemented?  are there 2 sets of cpu -registers, 1 interrupts , 1 main program? or compiler allocate, say, 16 registers use main program , 16 interrupts don't need saved? as part of function call/return code overhead, compiler generates code save , restore registers function uses. more compiler magic. -j Arduino Forum > Forum 2005-2010 (read only) > Software > ...

the libraries and the main class file

hello how can access standard functions (like digitalwrite(), delay() etc.  in custom class? if include these somehow? these function calls in main file (.pde) not used through instance either? ( xxx.delay() , have no option send  constructor make use of basic functions in class. so im wondering how can use them in own custom classes. the other standard libraries can included , used can see. are these available in main (pde) class ( setup() loop() class) ? i have not had issue using in libraries.  are having specific issue? Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > the libraries and the main class file arduino

Thread: C++ Serialization

is there tutorial covers c++ serialization using human-readable code? or maybe tutorial how write text file, , read text file load data...such load/save game routine. code: public interface itransformation { void init(configuration.transformationserviceelement section); void requestwriter(object serialize, stream stream); t responsereader<t>(system.io.stream stream) t : class; } implementing contract can swap serialization process... json format, xml format, binary format in c++ though since don't have access rich reflection capabilities found in java/c# don't think can send generic object serialize , query /public/private properties values save. instead think must typed object object should contain onserialize returns byte[] , ondeserialize returns new instance of object. simplest way go. think needed memcpy dump it's local memory space ...

formattazione testo ed immagini articoli - Joomla! Forum - community, help and support

Image
ciao tutt*, ho installato il template ytw_minimalist. funziona tutto bene eccetto la formattazione del testo degli articoli. mi spiego meglio: se provo centrare il testo o un'immagine, oppure ad allinearli destra, non ottengo alcun risultato, rimane sempre comunque tutto allineato sinistra. lo stesso articolo, se cambio il template, appare con la formattazione giusta, quindi credo che il problema sia in ytw_minimalist...dove posso andare vedere per sistemare il problema? c'è qualche cosa nel codice che devo cambiare (ed eventualmente come)? grazie mille probabilmente nel css ci sarà qualche text-align :left o simile Board index Joomla! International Language Support International Zone Italian Forum Componenti - Moduli - Plugins

Need advice on designing 1hr long course in captivate

hello, i've noticed captivate publishes 1 swf , container swf. suspect small 5min captivate projects i've seen, 30-60 min course developed in captivate take long time load if heavy on image assets. can provide me ideas on breaking down long course (up 60min) bite size captivate chunks each learning objective, , integrate them 1 big project. thanks in advance, lisa instructional media consultant lisa, the last few messages in this "getting started" message thread seem relevant query. if or on team skilled flash, popular way break long course develop (in captivate) "bite-size chunks" pages sequenced flash-based course player. idea course player loads each "page" in sequence, , own navigation controls allow student page forward/backward through course. if flash isn't option you, can try stringing "chunks" directing captivate load next file when reaches last slide of file playing. More discussions in Quizzing/LMS ...

2 servo sweep

hi! i'm working on code mask making; need eyelids blink. i have 2 mini servos , used sweep code provided through arduino skeleton code. original code 1 servo. need add servo opposite of first servo (so when myservo @ 115 degrees, mysecondservo @ 3 degrees , vice versa). here's have: quote //doublesweep //edited original code barragan #include "servo.h" servo myservo;  // create servo object control servo servo mysecondservo;              // maximum of 8 servo objects can created int pos = 0;    // variable store servo position void setup() {  myservo.attach(9);  // attaches servo on pin 9 servo object  mysecondservo.attach(10); // attaches servo on pin 10 servo object } void loop() {  for(pos = 3; pos < 115; pos += 1)  // goes 3 degrees 115 degrees in steps of 1 degree  {                                      myservo.write(pos);              // tell servo go position in variable 'pos'    delay(15);                       // waits 15ms servo...

You are not authorized to view this resource. - Joomla! Forum - community, help and support

Image
does can me solve these problems? appeared when click on links on top menu... when check access level set public..these error message appears on links static content... me plz... plz bear me.  this faq item in forums might lead somewhere: http://forum.joomla.org/index.php/topic,19443.0.html Board index Joomla! International Language Support International Zone Filipino Forum International Support Center

Problem installation SMF forum! - Joomla! Forum - community, help and support

hej! när jag installerar "smf discussbot version 4.1 final" får jag följande meddelande:    don't forget add following code bottom of mambo/joomla template: ob_start('output'); $buffer = ob_get_contents(); ob_end_clean(); $buffer = str_replace(' ' ,' ', $buffer); echo $buffer; ?> vad betyder det? var närmare bestämt är det jag kan lägga in den här koden? mvh anders det låter som det borde vara index.php, men jag är inte 100 /jon Board index Joomla! International Language Support International Zone Swedish Forum Äldre versioner Forum Joomla! 1.0 Komponenter, moduler och Mambots

Pushbutton as Tugle Switch Code

Image
ok simple , stupid question how can code push button switch / toggle switch... like when press button led 13 stays on until press button next time? im playing w/ following example far have no guesses code: [select] /*  button turns on , off light emitting diode(led) connected digital   pin 13, when pressing pushbutton attached pin 7. circuit: * led attached pin 13 ground * pushbutton attached pin 2 +5v * 10k resistor attached pin 2 ground * note: on arduinos there led on board attached pin 13. created 2005 dojodave <http://www.0j0.org> modified 17 jun 2009 tom igoe  http://www.arduino.cc/en/tutorial/button */ // constants won't change. they're used here // set pin numbers: const int buttonpin = 2;     // number of pushbutton pin const int ledpin =  13;      // number of led pin //alexus const int buttonpin2 = 3;     // number of pushbutton pin const int ledpin2 =  12;      //...