Posts

Showing posts from June, 2014

Analog Timing issue.

this has got me beat. i'm doing time critical measurements , problem. i'm chasing why there large steps in time measurements. i'm supplying 50 hz signal board. time between cycles 20000 usec. i'm send serial output once second. in order nice clean signal wait falling edge, rising 1 make sure trigger voltage d goes >200. record time.   i wait falling edge , rising , take next time measurement.  i subtract 2 time per cycle. now question, when add small delay, way below 20000 usec period, why timing measured change , why such odd numbers. timing should not change @ all.   for   delaymicroseconds(1);  or no delay i 20048 20048 for   delaymicroseconds(4);   i 20064 20064 for   delaymicroseconds(20);   i 20080 20080 for   delaymicroseconds(40);   i 20096 20096 for   delaymicroseconds(60);   i 20000 20000 for   delaymicroseconds(70);   i 20016 20016 code: [select] unsigned long rpmstarttime = 0; unsigned long rpmendtime=0; unsigned long rpmduration=0; void s...

timer/counter problem - please help

hi i'm using atmega328 build engine controller final year project , i've run problem can solve. i used 16bit timer1 counter encoder, , periodically fetched value tcnt1. however, using timer1 counter prevents servo function working, need actuate engine trottle. i've tried using timer0, seemed disable serial com, , can't figure out how use timer2 counter. if can setting timer2 counter, or knows of method of using high speed encoder (up 5000 inputs per second) , servo motor together, i'd extremely grateful. this timer 2 setup thats not working: code: [select] timsk2 = 0;            // disable timer2 interrupts assr = 0b01000000;      // enable external clock source // assr | 0b00100000;      // set asnychronous mode ??? // apparently timer must asnychronous use external source tccr2a = 0;            // disable waveform generation mode tccr2b = 0;       // use clock n...

Thread: [SOLVED] Ubuntu no detecta placa de sonido ISA Creative

Image
hola, como dice el titulo, tengo esta placa y ni ubuntu ni xubuntu la detectan, no se que hacer para activarla. la placa andaba lo mas bien en el xp antes de que le instalara ubuntu arriba. al hacer click en el parlantito aparec una leyenda que dice: "gstreamer no pudo detectar ningun dispositivo de sonido. puede que falten algunos paquetes especificos del sistema de sonido gstreamer. tambien puede ser un problema de permisos." en el synaptic ya instalé todo lo que dice gstreamer y alsa y no pasa nada todavia. alguna sugerencia de que puedo hacer? gracias de antemano. posted einfachlacm hola, como dice el titulo, tengo esta placa y ni ubuntu ni xubuntu la detectan, no se que hacer para activarla. la placa andaba lo mas bien en el xp antes de que le instalara ubuntu arriba. al hacer click en el parlantito aparec una leyenda que di...

Read out SEF Parameters - Joomla! Forum - community, help and support

Image
hi, i have porbably rather easy question regarding sef. i got folwing url http://www.domain.com/component/option, ... itstart,4/ /catid,1/ i need read out paramter of catid (which in case 1) put script writing right now. how do that? (in case , in general) thanks in advance martin you might want try this; it's modules use: $catid = intval( $params->get( 'catid' ) ); jen Board index Joomla! Older Version Support Joomla! 1.0 General Questions - 1.0.x

Different script to do same thing. Why?

hi there everyone. i'm new on here, , new arduino. i'm working way through basic sketching , trying not ask loads of questions , figure out myself (the spirit of arduino, no?) but, have question today. these 2 following bits of code same thing, yet use different syntax. can explain difference between: '#define' , 'int', when comes setting pin input/output? i understand int variable, don't understand how used set pins mode. , why both work? many in advance. sim sketch one: // project 1 - led flasher int ledpin = 10; void setup() {            pinmode(ledpin, output); } void loop() {            digitalwrite(ledpin, high);            delay(1000);            digitalwrite(ledpin, low);            delay(1000); } sketch two: // example 01 : blinking led #define led 13 // led connected to // digital pin 13 void se...

Raspberry won't load SD *anymore* (solved) - Raspberry Pi Forums

hello, sinds yesterday found myself in following situation: * use icidu 16gb sdhc class 10 card * card has worked past 3 months (using xbian & raspbmc) * yesterday flashed (using dd) openelec, didnt , reflashed xbian) * card won't load in pi anymore (red led flashes) * (microsd)card same image works in pi * card works in windows, linux etc. * /dev/zero'ed , reflashed card, didnt help how cannot use sd card in pi anymore? problem found, sd card socket pin on pi little bend raspberrypi

Arduino, SoftPot, Speaker

Image
hi, i'm new here... i need programm can input softpot (touchable potentiometer work same ordinary potentiometer) , send speaker it guitar need notes output intput (if programm can edit on own) if got little more time think bu problem don't have time please me idea: potentiometer-------> arduino ---------> speaker /\ | the output (input in arduino) has value has combined note like: c, d, e, f, g, a, b, c etc if can me i'd appreciate that you can post on forum can send me to: mwent(at)live(dot)nl           @          . thnx dunky13 Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Arduino, SoftPot, Speaker arduino

Making a Bargraph fade out

hello everybody! i got arduino, , stuck http://arduino.cc/en/tutorial/bargraph bar graph tutorial. i using joystick control bargraph. now want bar not fall 0 when joystick snaps in starting position. i thinking of kind of "delay", smoothly comes down, perhaps 200ms, bar should updated when new sensor input registered. i can not use delay() this, there no sensor "scanning" in this. tried millis() got stuck, complete waste. could tell me how possible? greeting , in advance halogen a delay won't want - it'll delay "snap" back. one way of doing want average reading. Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Making a Bargraph fade out arduino

Thread: trying to install dd-wrt on linksys router

i trying install dd-wrt on linksys wrt54g v8 using these instructions http://www.dd-wrt.com/wiki/index.php...h_the_wrt54gv8 had accessed router , flashed killer software , said longer wait better left @ rebooting router screen , took shower. when came had network interupted message , power light doesn't come on ehternet light. can no longer acess 192.168.1.1 please me out here you have tftp rest of firmware there in last part of tutorial believe killer smokes vxworks loader. have use other app load redboot loader, , actual firmware image. network interruption due dhcp being off. set static ip, , run through tutorial again. fyi, @ step 7 why not on dd forum? seems longshot trolling, , have practical knowledge of firmware loading. Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] trying to install dd-wrt on l...

Thread: what will command rmmod 8169 do

i ran command rmmod 8169 on hp pavilion noticed wired network stopped working how can correct problem? emergency because need repair wirless , install build essential please me need badly. please me can reverse command rmmod 8169 or how can install again on computer please me Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] what will command rmmod 8169 do Ubuntu

visual basic serial communication

Image
hi all. i've been searching on web problem. can't find anny tutorials works. i have arduino duemilanove, temp sensor, 2 led lights , 2 pushbuttoms. what wanna do, make software windows in visual basic. and need communicate between arduino , computer. i've made soft , managed turn led on of pressing buttoms on skreen, don't manage show temp sensor value in visual basic. later i'd have several temp sensors showing on screen. annyone know how read serial communication arduino? heeeelp  :-/ -andy * code * -------------------------------------------------------------- * arduino * #include <math.h> int ledpin      = 10;           // number of led pin int buttonpin2  = 2;            // number of pushbutton pin int incomingbyte; double thermistor(int rawadc) {  double temp;  temp  = log(((10240000/rawadc) - 10000));  temp  = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * temp * temp ))* temp );  temp  = (temp - 273.15);            // celcius  //te...

Thread: Garry's Mod.

after smooth installation of garry's mod, tried have quick play around before installing mods. however, whenever try bring spawn/options menu mouse lingers second , cursor disappears , view acts if i'm spinning mouse around rapidly, yet it's still. ideas? bump. Forum The Ubuntu Forum Community Ubuntu Specialised Support Wine Garry's Mod. Ubuntu

What is the use of uploadDataFieldName in upload()

hi friends, i not able understand purpose of uploaddatafieldname parameter of upload method. public function upload(request:urlrequest, uploaddatafieldname:string = "filedata", testupload:boolean = false):void if file data, how data of file? browse m able file name only. how can convert binary form. how binary contents of file? plese me regarding this, many days m facing problem in fileupload programs. if has done file upload in servlets or struts using jakarta commons or in way, please guide me. thanks in advance help More discussions in Flex (Read Only) adobe

Dedicated sketch uploader/installer

hey guys, so, i'm complete idiot when comes more basic arduino programming, trying dive in deeper. particular application have in mind, want give end users ability edit number of variables, can define serial strings sent when given button pressed. can offer guidance on how create standalone editor/loader let them either edit these strings directly in said program, or read them in text file user edited, , send these arduino in non-volatile format? i can see 2 possible approaches, , fine either, don't know how implement either: 1) editor edits actual strings in sketch, , reloads entire sketch the arduino, it's modifying sketch. imagine somehow use command line loader, i'm in on head sorting out. 2) editor communicates via serial arduino, , sketch on arduino receives these strings editor,and stores them in eeprom. this, arduino have sense whether or not connected via usb, think, since otherwise i'm using serial out output midi. in either case, i'm trying ...

TouchShield and Serial String

hi everyone. i new @ arduino development , have problem programming touchshield , arduino board communicate together. always when send string touchshield show first char alone , half second later whole string without first char. i want show time without flashing of screen. here code arduino: code: [select] #include "wire.h" #include <afsoftserial.h> #define ds1307_i2c_address 0x68 //touch shield slide ports #define rx_pin  3 #define tx_pin  2 afsoftserial touchserial =  afsoftserial(rx_pin, tx_pin); // convert normal decimal numbers binary coded decimal byte dectobcd(byte val) {  return ( (val/10*16) + (val%10) ); } // convert binary coded decimal normal decimal numbers byte bcdtodec(byte val) {  return ( (val/16*10) + (val%16) ); } // stops ds1307, has side effect of setting seconds 0 // want use testing /*void stopds1307() {  wire.begintransmission(ds1307_i2c_address);  wire.send(0);  wire....

Boolean question

is have code reads code serial port (pc). using boolean want able enable/disable printing of read input pc (it should disabled default) on top of sketch i've declared: code: [select] //gamepadserialfeedback variables declaration boolean gamepadserialfeedback = false; const char serialfeedbackon[] = "~serialfeedbackon#"; const char serialfeedbackoff[] = "~serialfeedbackoff#"; after reading serial code (the code has include following header , footer) input saved inside array (stringin): header: ~ footer: # based on command printing function enabled or disabled: code: [select] //enables or disables feedback (print) arduino interface software.            if (strcmp(serialfeedbackoff,stringin) == 0){              serial.print("~gamepadserialfeedbackoff#");              gamepadserialfeedback = false;            ...

swf is blurry in ie7 but sharp in flash player

we had flash header done site of ours. header looks great in flash player 9; blurry when viewing in ie7 or firefox. noticeable in logo , pictures. does have export setting within flash? suggestions welcome. thanks in advanced. could jpeg compression settings. there jpeg images in file? there 2 ways adjust: 1. individual images select bitmap image in flash library. click little "i" button @ bottom of library panel. adjust jpeg settings. 2. entire site in flash menus, go file>publish settings , adjust jpeg compression entire site. More discussions in Adobe Animate CC - General adobe

Problems with SoftwareSerial code

hi guys, i've been playing around sample code provided softwareserial library: http://arduino.cc/en/reference/softwareserialexample but ran bit of problem, when try compile version following error: error: expected primary-expression before '(' token in function 'void setup()': here code: code: [select] #include <softwareserial.h> int servopulse1 = 1250; ..... #define txpin  7; softwareserial myserial =  softwareserial(txpin); byte pinstate = 0;   void setup()   {  pinmode(txpin, output);  ...........    myserial.begin(9600); } i'm running arduino 0018, on mac os x 10.5. ideas?  cheers. code: [select] #include <softwareserial.h> int servopulse1 = 1250; [glow].....[/glow] #define txpin  7[glow];[/glow] softwareserial myserial =  softwareserial(txpin); byte pinstate = 0;   void setup()   {  pinmode(txpin, output);  [glow]...........  [/glow]  myserial.begin(9600); }   Arduino Forum ...

RPi B on stock in Switzerland - Raspberry Pi Forums

Image
good morning (o; posted in german section of forum, since 1 ordering related, why not (o; rpi b 512mb, cases , accessories available on stock in switzerland through: https://shop.klingler.net/ reason being many people in switzerland either don't have credit card buy abroad or want rpi possible in hands (o; thanx listening and greetings .ch richard sorry forgot mention site in german (yet) (o; apologies visitors abroad. raspberrypi

Animation on top

http://thelocalbuzz.users.digital-crocus.com/ hi im after little site.... need have whichever animation in progress on top. @ moment 1 on left behind. can please? i checked out site still confused asking - "whichever" animation on top of....what? see 1 on left , doesn't "behind" anything. can re-explain? chris georgenes / mudbubble.com / keyframer.com / adobe community expert futurewasp wrote: > http://thelocalbuzz.users.digital-crocus.com/ > > hi im after little site.... need have whichever > animation in progress on top. @ moment 1 on left > behind. can please? > More discussions in Adobe Animate CC - General adobe

Mambot for Click Counter - Joomla! Forum - community, help and support

is there mambot out there count clicks on links sitewide in joomla site? find like display somewhere top 5 clicked links in site. know of this? thanks, brian bnjmilner wrote: is there mambot out there count clicks on links sitewide in joomla site? find like display somewhere top 5 clicked links in site. know of this? thanks, brian there core module called "most popular" (or mostread) shipped joomla. not suit needs? Board index Joomla! Older Version Support Joomla! 1.0 Extensions - 1.0.x Plugins/Mambots

How to print random text

Image
i wondering if can me code print random text. heres pseudo code. randomname = john or fred or peter or jim; serial.print("hello "(randomname)); this hello 1 of of names listed picked randomly. something this: quote const byte number_of_names = 4; char * names[number_of_names] = {   "john" ,   "fred" ,   "peter" ,   "jim" }; void setup (){   serial . begin (9600);   randomseed ( analogread (0));   serial . print ( "hello " );   serial . println (names[ random (0,number_of_names)]); } void loop (){ } Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How to print random text arduino

odd problem - led turns on when hand is near

ok, took code digitalread reference entry , tried use turn on led using switch (just wanted try digitalread, know don't need use switch). got led connected pin 12 , switch connected pin 7. time led turns on when switch on , hand nearby (not touching, nearby, regardless if i'm grounded wriststrap or not). circuit switch doesn't have completed; can have 1 wire in pin 7 , other in air not touching anything; put hand nearby , led turns on. its basic knowledge known electronics savvy people, clueless up. btw, have tried setting circuit/s ton of different ways (common ground, seperate ciruits, in series no ground, in series common ground, pull resistor, pull down resistor, etc.); weren't correct gave me same result , rest gave me none. below code. code: [select] int ledpin = 12; // led connected digital pin 12 int inpin = 7;   // switch connected digital pin 7 int val = 0;     // variable store read value void setup() {  pinmode(ledpin, output);      // sets dig...

perhaps a little help with servo control??

hello everyone, here's goal, pretty simple - little prototype larger project.... i need able control 9 servo's 1 board (decimilia) independently.  i'm bit new @ writing code however, approach write separate functions each servo, , call functions in main loop in whatever order necessary achieve desired effect.   i have code runs of them @ once, (just test see if power supply sufficient) - how modify or re-write code independent control , choreographed sequence of actuations? code: [select] #define servoa 13 #define servob 12 #define servoc 11 #define servod 10 #define servoe 9 #define servof 8 #define servog 7 #define servoh 6 #define servoi 5 #define min_pulse 600 #define max_pulse 2400 #define delta 1800 int lastpulse = 0; int refreshtime = 20; long randnumber; void setup() {  int i;  pinmode(servoa, output);  pinmode(servob, output);  pinmode(servoc, output);  pinmode(servod, output);  pinmode(servoe, output);  pinmode(serv...

page title to appear in title bar - Joomla! Forum - community, help and support

hello, right possible show page title in browsers  title bar shows 'site name - ' + 'page title' (i.e if in forums show joomla -forums" possible omit site name show page title on every page? thanks, alon this can done hacking joomla.php file. see: seo & usability - page titles format - 4.5.3 http://forum.joomla.org/index.php/topic,18041.0.html Board index Joomla! Older Version Support Joomla! 1.0 General Questions - 1.0.x

Shift register 74HC595-switching 2LED at the same

looking sample code found in tutorial section (http://www.arduino.cc/en/tutorial/shiftout) can switch "on" leds 1 one using second example. in specific case want light example led3 , led7 need switch between led3 , led7 reduces lumen output @ least 50%, correct? how code have cases described above, switchin on 2 or 3 leds same time? the simplest code want, given definitions , setup() in example code: [select]  // turn off output pins don't light up  // while you're shifting bits:  digitalwrite(latchpin, low);  // shift bits out:  0b10001000 sets pins 3 , 7  shiftout(datapin, clockpin, msbfirst, 0b10001000);    // turn on output leds can light up:  digitalwrite(latchpin, high); probably wise use procedure set value: code: [select] void setbits(int val) {  // turn off output pins don't light up  // while you're shifting bits:  digitalwrite(latchpin, low);  // shift bits out:    shiftout(datapin, clockpin, msbfirst, val)...

how to transfer database from local to server? - Joomla! Forum - community, help and support

Image
is there way transfer site content local jsas server main production server?  i've created menus , such , not feel redoing them on main server.  thanks jb person helps out jsas, might try giving him private message: http://forum.joomla.org/index.php?action=profile;u=45 i've downloaded jsas , getting used myself. Board index Joomla! Older Version Support Joomla! 1.0 General Questions - 1.0.x

Problem with Arduino + Flash

Image
i'm working on project allow me click button on flash activate led on hardware. problem: when enter specific frame button located on flash, communication started successfully. however, when went other frame , decided come button frame, there error. serproxy display error message of "failed open comm port - connection refused" . , communication ended. i'm pretty sure there no problem either arduino coding or serproxy. is there anyway can enter other frame , come button frame without having communication disconnected? below coding of flash actionscript 2. code: [select] //------------------------------------------------------------------------ basic arduino import arduino; var port:number = 5331;// socket port configured use? // see net_port entries serproxy.cfg // create custom object flash's xmlsocket var a:arduino = new arduino(port); //------------------------------------------------------------------------ listeners // can trigger custom actions addin...

Spry menu problem

hi i got dw cs3 , went spry menu (vertical), works fine in ie7 ff 2 wrong, it's shrunk on me. is firefox 2 supported properly? yes. let's see page.... -- murray --- icq 71997575 adobe community expert (if *must* email me, don't laugh when so!) ================== http://www.dreamweavermx-templates.com - template triage! http://www.projectseven.com/go - dw faqs, tutorials & resources http://www.dwfaq.com - dw faqs, tutorials & resources http://www.macromedia.com/support/search/ - macromedia (mm) technotes ================== "shueardm" <webforumsuser@macromedia.com> wrote in message news:f2pk58$he7$1@forums.macromedia.com... > hi > > got dw cs3 , went spry menu (vertical), works fine in > ie7 ff 2 wrong, it's shrunk on me. > > firefox 2 supported properly? More discussions in Dreamweaver support forum adobe

simple ruby script to convert serial to midi

i've created simple script others might find useful.. grabs serial data coming arduino , converts midi commands using midiator gem.. first stab , implies have data coming across wire this note,duration,velocity code: [select] require 'rubygems' require 'midiator' # don't ask... # http://www.ruby-forum.com/topic/123503 kernel::require "serialport.so" #params serial port port_str = "/dev/tty.usbserial-a6006esl"  #may different you baud_rate = 9600 data_bits = 8 stop_bits = 1 parity = serialport::none sp = serialport.new(port_str, baud_rate, data_bits, stop_bits, parity) midi = midiator::interface.new midi.autodetect_driver puts "begin" begin  loop do    resp = sp.gets    break if resp.nil?        puts "got midi message: #{resp}"        note, duration, velocity = resp.split(",").collect{|x| x.to_i }        #duration = duration / 100        midi.play note,              duration / 100,     ...

Frontend content editing error - Joomla! Forum - community, help and support

Image
hello, this strangest problem i've ever seen, , i'm problem .. cause can't figure out. i wanted add fields content item ... added fields in database, edited joomla.php, edited admin.content.html.php backend , content.html.php front end. when add item in frontend, goes ok when add item in backend, goes ok when edit item in frontend, original fields except categorie don't change, new fields do when edit item in backend, goed ok i've changed it's original state, doesn't work, don't know if worked before eather. i figured out before updateobject call in store function (database.php) title property example has posted value. when check again in updateobject function title has old value. the rules between firs , second check are code: select all global $migrate;       if( $k && !$migrate) {          $ret = $this->_db->updateobject( $this->_tbl, $this, $this->_tbl_key, $updatenulls); what suprises me new fields , category updated ...

Mémoire partagée - Raspberry Pi Forums

Image
bonjour à la communauté, j'ai un problème de mémoire partagée un peu bizarre. en effet j'ai modifié une fois le ratio de partage mémoire entre le gpu et le cpu via raspi-config et tout à bien fonctionné jusqu'à ce je décide de remodifier ce ratio pour utiliser xbmc et là impossible de le modifier. j'ai essayé d'ajouter une ligne gpu_mem=128 dans le fichier /boot/config.txt mais rien n'y fait, n'ayant plus les fichiers.elf ( je ne sais pas pourquoi), comment puis je réussir à repartager correctement la mémoire ? merci par avance pour votre aide réinstalle le paquet raspberrypi-bootloader ou si non, tu peux récupérer ces fichiers dans l'image de la carte sd raspberrypi

Font Size grayed out? only thing grayed out

have trial version of dreamweaver it? can change font style , color, both font size , font size + or feature grayed out can not change text font in html. small text in teh page not titles. any ideas? trial version functional. cursor when property inspector grayed out? "darp2" <webforumsuser@macromedia.com> wrote in message news:f2nqet$e6r$1@forums.macromedia.com... > have trial version of dreamweaver it? can change font > style > , color, both font size , font size + or feature > grayed > out can not change text font in html. small text in > teh > page not titles. > > ideas? > More discussions in Dreamweaver support forum adobe

Which Compiler?

i started using latest version of avr gcc today: gcc version 4.3.3 (winavr 20100110).  so far, i've needed make 1 change (move avrdude.conf file).  the compiled programs smaller otherwise seem run same. anyone else try different version of avr gcc arduino? quote anyone else try different version of avr gcc arduino? not within capabilities. have noticed several times there gcc upgrade new arduino release there seems function(s) or library(s) ends broken. think arduino developers group working on automated testing suite project make new releases more bug free. still might end strange new problems newer avrdude, gcc, processing releases etc. seems the arduino platform builds on top of many other independent projects can quite task make sure nothing breaks each release. sure appreciate effort put project. lefty Arduino Forum > Forum 2005-2010 (read only) > ...

Audio input and waveform analysis

Image
hi, firstly i'm new arduino forgive me if doesn't make sense. what i'm trying have sound input ipod or mp3 player arduino drive set of motors waveform of music. know can thorugh processing don't want have arduino attached it. arduino atmega328 if makes difference. doesn't need exact people can see it's reacting music. any on great. well, want feed sound output 1 of arduino's analog input pins; once you've done that, can use analogread() function voltage level (corresponding waveform's voltage reading) value 0-1023 integer variable. once have stored in variable, tricky part (but code exist out there - somewhere) feed values (as small array of integers, imagine) fft algorithm/function, in order process waveform sampled whatever number of frequency bands desire; there can use levels drive whatever other code need. now, audio input tricky - gonna want measure it; should around 1v peak-to-peak regular line-level outputs, can...

Thread: I lost a big project backup

i made mistake of doing loads of additional work on backup copy. somehow has gone, (i must have pressed save on wrong version...) suggestions on find backup on xubunto operating system? hope have worded right. if hit wrong button , saved in different format; should in home directory ~/ or if me , save in documents; check there; lets hope did save changes somewhere Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [xubuntu] I lost a big project backup Ubuntu

Arduino+ VS1053 + SPI problems

hi i ve been trying spi work time vs1053b data= http://www.vlsi.fi/fileadmin/datasheets/vlsi/vs1053.pdf vlsi mp3 chip cant! wonder if can direct me going wrong. i using arduino mega + sparkfun vs1053b breakout board  data= http://www.sparkfun.com/datasheets/breakoutboards/vs1053-v13.pdf pins arduino-->breakout 50    --->so 51    --->si 52    --->sclk 53    --->cs 5v   ---->vcc gnd ---> gnd also left -->speaker       gbuf --> speaker wanted see if can sine test: code: [select] //connection vs1053b arduino mega #define dataout 51//mosi #define datain 50//miso - #define spiclock  52//sck #define slaveselect 53//ss byte clr; char spi_transfer(volatile char data) {  spdr = data;                    // start transmission  while (!(spsr & (1<<spif)))     // wait end of transmission  {  };  return spdr;                    // return received byte } void setup() {  pinmode(dataout, output);  pinmode(datain, input); ...

HELP! DataGrid not displaying data when WebService reloaded

i have datagrid gets populated webservice call. works fine. periodically re-calling webservice reload data. when happens, see clock icon second , datagrid's data gone. have tried re-setting dataprovider no luck. appreciated!! ================== example code snippet: <mx:canvas xmlns:mx=" http://www.adobe.com/2006/mxml" width="100%" initialize="init();"> <mx:script> <![cdata[ import mx.controls.alert; import flash.utils.timer; import flash.events.timerevent; private var timer:timer; private function init():void { this.timer = new timer(10000); this.timer.addeventlistener(timerevent.timer, this.resetnow); this.timer.start(); } private function resetnow(event:timerevent):void { svcpressreleases.gethomepressreleases(); } ]]> </mx:script> <mx:webservice id="svcpressreleases" wsdl="xxx...dev_work/cfc/flex_integrate.cfc?wsdl" showbusycursor="true" result="pressreleasesgrid....

breaking loop() on button push

second day playing arduino! i'm looking easy way on breaking loop() on button.ispressed(). or there way can check condition after every line in loop? i make complex loop i'm trying find 2 or 3 lines instead of 100+. if need check switch state often, switch should wired interrupt pin, , interrupt service routine should called. the loop function called in endless loop, many 16,000,000 times second. if can't wait 62 nanoseconds determine button pressed, there may issues code have making loop take long. Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > breaking loop() on button push arduino

Introducing delays in switch case

i have following switch case code sends data received on serial unique servo: code: [select]        switch (servo) {        case 1:          servo8.write(pos);    // move servo1 'pos'          break;        case 2:          servo9.write(pos);          break;        case 3:          servo10.write(pos);          break;        case 4:          servo11.write(pos);          break;        case 5:          servo12.write(pos);          break;        }        delay(10);       in cases servos should have 15 ms reach destination befo...

Cannot Connect to Coldfusion with Flex 2

i attempting call coldfusion component using remoteobject , getting error cannot communicate coldfusion. [rpc fault faultstring="[messagingerror message='unknown destination 'coldfusion'.']" faultcode="invokefailed" faultdetail="couldn't establish connection 'coldfusion'"] i know running correctly , application , cfc located in coldfusion wwwroot. have looked online , found many articles it, seem beta 2. compiler solution done , have editted services-config.xml include path of cf server. cf running fine , restarted both coldfusion server , flex builder 2 program after changes. any ideas on can find information pertaining released version of flex 2? here actual path application: c:\cfusionmx7\wwwroot\flexbtb\flex here url: http://localhost:8501/flexbtb/flex here modified version of services-config.xml file inside coldfusion directory <?xml version="1.0" encoding="utf-8"?> <services...

multiple if statements

Image
hi im looking comand says if condition true , other condition true something. thanks. code: [select] if(a == b && c == d) {   // because condition 1 , condition 2 both true } Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > multiple if statements arduino

Thread: Automatically copying a file to a Windows Server

hello all, been looking solution , haven't found helpful yet, apologies if has been discussed , missed it... i've got shell script create backup file of wiki's files , database (via mysqldump). places nice neat zip in directory cron, every day. i'm looking have new file copied share on windows server on local network. don't know syntax or how go doing this, whether adding more shell script or new cron job. can offer ideas or how-to, these daily files moved windows server? can view windows server fine via gui file browser, able drag'n'drop files through that. want automate that. read link http://www.linuxjournal.com/article/4360 Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Automatically copying a file to a Windows Server Ubuntu

Splitting serial string

hi all, can point me right direction regarding splitting string comes in through serial port? i want send string "w,0,26" or "r,1" arduino, , depending on string, take different actions. thanks in advance, erisan500 i've seen 2 things mentioned... 1. scanf http://www.arduino.cc/cgi-bin/yabb2/yabb.pl?num=1257423474 http://www.google.com/search?q=scanf+site%3aarduino.cc 2. hand-coded parsing... http://www.google.com/search?q=parse+serial+data+site%3aarduino.cc Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Splitting serial string arduino

Manipulation of Millis() value

after sanguino wakes 8 sec sleep, advance millis() value 8000. possible? yes , no. no, if use standard arduino libraries. yes, if not mind patch them. in hardware/cores/arduino/wiring.c you find code: [select] volatile unsigned long timer0_overflow_count = 0; volatile unsigned long timer0_millis = 0; static unsigned char timer0_fract = 0; and code advances them. can add function advance them on own demand. take care make advance function internally atomic. start like code: [select] uint8_t old_sreg = sreg; cli(); and end like code: [select] sreg = old_sreg; cli(); Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Manipulation of Millis() value arduino

Thread: Where to place a custom script to run from console

where in file hierarchy should put script want access terminal @ times? in case, it's shell script, should place myscript.sh in /usr/bin directory? work users? if myscript.py instead, same procedure still apply? sorry numerous questions. thanks! yes, put it. work users if give execute permissions. belieeve py script work same. sure include #!/usr/bin/python or #!/bin/bash line shell knows it. Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Where to place a custom script to run from console Ubuntu

gedit Arduino syntax file

hello all, i made quick highlight file .pde extension in gedit. alteration of c.lang file, recognizes .pde format , presents arduino name in drop-down menu. unfortunately, can't seem add file posting. however, can offer 2 options interested: 1. login , send me message email. 2. copy , paste following code: code: [select] <language id="c" _name="arduino" version="2.0" _section="sources">    <metadata>      <property name="mimetypes">text/x-c;text/x-csrc;image/x-xpixmap</property>      <property name="globs">*.pde</property>      <property name="line-comment-start">//</property>      <property name="block-comment-start">/*</property>      <property name="block-comment-end">*/</property>    </metadata> to this, copy code. open c.lang ...