maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 as bike computer? (https://talk.maemo.org/showthread.php?t=33282)

Flandry 2010-06-02 14:48

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 695813)
I haven't done that, but i definitely know, that it is possible. People have successfully used sound cards as oscillograph. Microphone input can register variable current under 2 volts (if i'm not shure about parameters, maximum allowed voltage and current should be investigated).
You should place magint like this on a wheel http://www.chip-dip.ru/product0/9000033861.aspx
Put dry reed (http://www.chip-dip.ru/product0/59097.aspx) on a fork. I was mistaken about price, it costs about $1.5, there are similar pieces for $0.2, but looks like they are out of stock. Then you need a battery to get a power and a resistor, which would adjust voltage and current to needed limits. When magnet is near reed, reed closes circuit and DAC in the phone would be able to detect it. You would also need a 3.5 mm jack nest ($0.8) to connect headphones (if you wish) and 3.5 mm 4pin jack to connect to phone (it's hard to find one, so cut one off from garniture, nokia gave you with the phone).
If you would listen recorded audio you would hear a "click" sound. Such click can be easily detected by software.

This is one of those cases where i would say "Pics or it didn't happen." :D While i agree in theory it's possible, i'm far too lazy and pessimistic to go to all that trouble without demonstration of an operational prototype on the N900.

How would you design the software to minimize battery use? I expect sound processing is a bit cycle intensive (pun intended).

KiberGus 2010-06-06 06:03

Re: N900 as bike computer?
 
Quote:

Originally Posted by Flandry (Post 695939)
This is one of those cases where i would say "Pics or it didn't happen." :D While i agree in theory it's possible, i'm far too lazy and pessimistic to go to all that trouble without demonstration of an operational prototype on the N900.

I did some tests and from hardware side it works, i can clearly hear clicks, when dry reed closes. So now, when I know what elements in what order should be conected I need to assemble it properly, not by twisting wires on the table.
Quote:

Originally Posted by Flandry (Post 695939)
How would you design the software to minimize battery use? I expect sound processing is a bit cycle intensive (pun intended).

Does music player consume much of battery? Sound analyzing would consume much less, because we only need 5 operations per measurement in worst case (we search for loud clicks). Reading data from microphone would require more. But I think, that we can set minimal sample rate available.

P.S. I usually don't cycle more than for two hours. And, anyway, its fun.

KiberGus 2010-06-06 11:07

Re: N900 as bike computer?
 
Well, I've finished soldering. Hardware works and "clicks" are recorded by maemo-recorder. More detailed description will be available soon.

Flandry 2010-06-06 12:46

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 702129)
Well, I've finished soldering. Hardware works and "clicks" are recorded by maemo-recorder. More detailed description will be available soon.

Hey, what about wiring it so that the reed switch is closing the circuit used for the headset button? No need to process audio at all!

Polling this device node shows the status: http://talk.maemo.org/showpost.php?p...5&postcount=64

If you want i can make some code to do it and show the frequency.

The only potential problem is see is device file not being updated at a high enough frequency to be accurate, but it's worth a try since it's easy and you've already got the hardware bit. We've lost the mic usage by your method so no additional lost functionality (i think).

The only thing a quick google about how the button is wired turned up is this:
http://webcache.googleusercontent.co...ient=firefox-a

Whether it's the same for the N900 headset i couldn't say, but i could check it out at work with a multimeter on Monday.

I might actually have to make one of these myself. :)

KiberGus 2010-06-06 13:41

Re: N900 as bike computer?
 
Quote:

Originally Posted by Flandry (Post 702229)
Hey, what about wiring it so that the reed switch is closing the circuit used for the headset button? No need to process audio at all!

Polling this device node shows the status: http://talk.maemo.org/showpost.php?p...5&postcount=64

If you want i can make some code to do it and show the frequency.

The only potential problem is see is device file not being updated at a high enough frequency to be accurate, but it's worth a try since it's easy and you've already got the hardware bit. We've lost the mic usage by your method so no additional lost functionality (i think).

The only thing a quick google about how the button is wired turned up is this:
http://webcache.googleusercontent.co...ient=firefox-a

Whether it's the same for the N900 headset i couldn't say, but i could check it out at work with a multimeter on Monday.

I might actually have to make one of these myself. :)

It looks like button is implemented in the same way. It is connected in parallel with mic and shorts circuit through 47 Om resistor. I used 500 Om resistor at first, but it produced too loud clicks, so I switched to 2 kOm, which does not lead to overloading audio tract.
Through, it should be safe to short mic wires because this is how headphones are detected. When I disassembled mic module I already had working scheme, and I decided to stick to it. And I don't have 50 Om resistor near me.
So, button sensing could be as power consuming, as sound analysis.

Mic is connected to two contacts on the jack which are closer to wire. Outer one is ground, inner is mic. If they are shorted phone thinks, that headphones are connected, if there is resistance about 1 kOm (it should be less, than 1.5 kOm, I didn't search lower bound) phone thinks, that headset is connected.

P.S. If you don't want to loose your headset I can make photos of mine.

KiberGus 2010-06-06 13:49

Re: N900 as bike computer?
 
Flandry, thanks, with my schematic
cat /sys/devices/platform/nokia-av/detect
gives 4 when reed is not shorted and 0 if it is shorted. So it is possible to poll /sys/devices/platform/nokia-av/detect or, may be, if for this file urgent reed events are generated, we could even make this effective.

Flandry 2010-06-06 15:09

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 702274)
Flandry, thanks, with my schematic
cat /sys/devices/platform/nokia-av/detect
gives 4 when reed is not shorted and 0 if it is shorted. So it is possible to poll /sys/devices/platform/nokia-av/detect or, may be, if for this file urgent reed events are generated, we could even make this effective.

I did a rough estimate that the maximum frequency that would have to be detected is 15 Hz*, which means about a 30 Hz sample rate. I have no way of pressing the button in a controlled way at 15 Hz to test this, but i can get about 5 Hz by hand detected with the current code. I need to change it to measure delta time because nanosleep is imprecise.

The trick here is going to be to balance poll frequency and update interval to avoid killing battery life. I still think there's no way audio analysis will be able to compete for battery usage, but the active polling could be a drain just because it doesn't allow the processor to enter sleep state

Edit: Have a project due this week so no more time on this for now, but i will try to get a functional app out next week to test it. If you could post a photo or two of your setup, i'd appreciate it. It seems like it would be best to wire up an adaptor with a lead running off for the switch.

* ~Smallest non-recumbent adult bike tire is probably 1" (2.54 cm) mountain bike (26") tire, which has a 1913 mm circumference (1). Using a very generous 100 km/hr = 27.8 m/s as top speed, the maximum frequency is 27.8/1.913 = 14.5 Hz.The lowest practical frequency is around 0.5 Hz (4 km/hr with 700 X 44 (2244 mm circumference) tire. It seems there may have to be a tradeoff on accuracy at one end or the other for practical reasons.

KiberGus 2010-06-06 21:05

Re: N900 as bike computer?
 
No time towrite normal text now, may be tomorrow. So just several photos with needed details, scheme and resulting construction. I didn't added headphones nest because appropriate part was absent in a shop.
http://kibergus.su/?q=gallery&g2_itemId=183
P.S. I don't have phone mount yet. Don't askabout it.

Flandry, should I bother with writing software or you already did it?

Flandry 2010-06-07 13:42

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 702688)
No time towrite normal text now, may be tomorrow. So just several photos with needed details, scheme and resulting construction. I didn't added headphones nest because appropriate part was absent in a shop.
http://kibergus.su/?q=gallery&g2_itemId=183
P.S. I don't have phone mount yet. Don't askabout it.

Flandry, should I bother with writing software or you already did it?

Yay, drupal.

As i mentioned, i've got a project due this week so it will be a few days before i can deliver a complete app to test it.

It appears that ~15 Hz is the best that the sensor device file can manage, so that might be a problem. There are still some things to try, though. 7 Hz wheel rotation is still about 50 km/hr, so still useful IMO. It remains to be seen if it will miss really short presses with a slow poll rate. Will update the thread when i have an app to test with.

KiberGus 2010-06-07 17:52

Re: N900 as bike computer?
 
Here is a description, how to make a sensor.
http://kibergus.su/en/node/39
By the way, doesn't maemo emit dbus signals, when buttons on headset are pressed? We need to start
dbus-monitor --system
and check. Some events are generated, vhen headphones are inserted and uplugged. I can't make tests with the sensor or headset because they are about 50 km from me now.

Flandry 2010-06-08 02:09

Re: N900 as bike computer?
 
Yeah, feel free to read through that thread that i linked with the post about the device node. The dbus implementation of it is pretty bad and requires some hacks to work at all. Far easier and more efficient to read the device node.

Benson 2010-06-08 02:55

Re: N900 as bike computer?
 
Yeah, but if you can only poll at 15 Hz, I'd be fairly certain you're gonna get a lot of missed pulses.

I have to wonder if using the mic channel isn't going to be the only reliable way. :(



On the hardware side -- if you're hooking a phone jack to the N900, and need some sort of battery anyway for the sensor, it seems a shame just to pipe it back to earphones. Kick the battery capacity up a bit (7.4V, 10Ah or so), add a charger for the N900 (now we don't worry as much about excess drain of monitoring mic channel), some powered speakers, and wire my (~30W of LED) headlights in... I do like where this is going. :D

I'll just need to resurrect my old N810-era plan of sticking a USB webcam under the saddle for rearview mirror (now that we have OTG support coming soon), and we're good to go...

KiberGus 2010-06-08 04:58

Re: N900 as bike computer?
 
Benson, battery is not needed. Only dry reed and two resistors. Link to description and photos are in my previous post.

Benson 2010-06-08 05:28

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 704822)
Benson, battery is not needed. Only dry reed and two resistors. Link to description and photos are in my previous post.

Ah, gotcha. I still wanna build the whole thing. :cool:

Flandry 2010-06-12 13:11

Re: N900 as bike computer?
 
1 Attachment(s)
So, there's some strange behavior. It seems the refresh rate of the device file increases as the button press-rate increases, but to what extent i don't know because i can only press the button so fast.

So, here's a very basic app to poll presses and report the frequency and approximate speed (based on 2m/revolutiion). Do you have a "real" bike computer to test its accuracy? If not then if you could check to see that it seems to scale up to higher than 5 Hz accurately, it may be worth putting more time into (i.e. GUI etc). :D I ended up stripping out everything besides a basic polling loop, so it's very simple right now.

Suggested means of basic testing (in absence of "real" bike computer): flip bike and spin wheel. Note speed reported. Increase speed of spin slightly and check that reported speed increases slightly. Repeat...

Oops, to run the app, type /opt/maemo/usr/bin/maebike.sh. I forgot to take out the trigger file so you have to run that script twice after you kill the app (ctrl-c) to run it again.

KiberGus 2010-06-12 19:55

Re: N900 as bike computer?
 
Flandry, unfortunately it misses most part of signals, especially on high speed. I think that only one of 50 is detected They are very very short. Can you please publish sources, so as I would be able to make more tests.

Flandry 2010-06-12 20:31

Re: N900 as bike computer?
 
1 Attachment(s)
It's a mess of commented-out code right now but if it doesn't work, that's a dead end. :(

It takes an initial time, polls the device file in a tight loop 60 times, takes the end time, and then divides the detected presses by the difference in time and prints it. Then it does it all over again. If it's missing presses in a tight loop, i don't think we can do any better using that resource. Back to the audio approach?

I'll copy and paste the snippet of code that actually does the relevant stuff when i get home from the lab.

Edit: Looking through that, i think i accidentally uploaded a version that calls nanosleep, so it might not be optimal. Try the version attached to see if it's any better.



Code:

#include <sys/time.h>
/* Headset button (AKA sensor) device file */
static const char *button_filename = "/sys/devices/platform/nokia-av/detect";

int read_button()
{
  FILE *fd;
  char button = 0;

  fd = fopen(button_filename, "r");
  button = fgetc(fd); // 4 is open, 2 (or 0 for hacked wiring) is closed
  fclose(fd);
  if (button == '4') return 0;
  else if (button == '2' || button == '0') return 1;
  else return -1;
}

int do_poll(int samples)
{
    int presses = 0, button_status, old_button_status = 0; // WARNING: Assuming button is open at start could lead to overcounting presses by 1/frame
    for (int i=samples; i > 0; i--)
    {
      button_status = read_button();
      if (!old_button_status && button_status > 0)  presses++; // No error checking
      old_button_status = button_status;
    }
    return presses;

int main(int argc, char **argv)
{
  struct timeval start_poll, end_poll;
  float elapsed_time;
  while(1) { // Begin main loop. This only exits if a trigger file that was specified is deleted.
    gettimeofday( &start_poll, NULL );
    presses = do_poll( 60 );
    gettimeofday( &end_poll, NULL );
    elapsed_time = (float)(end_poll.tv_usec - start_poll.tv_usec)/1000000.0;
    elapsed_time += end_poll.tv_sec - start_poll.tv_sec;
    printf("Revolutions: %i Elapsed: %0.2fs Hertz: %0.2f Approx. speed: %0.1fm/s\n", presses, elapsed_time, (float)presses/elapsed_time, presses*2.0/elapsed_time);
  } // End main loop
  return 0;
}


KiberGus 2010-06-12 21:01

Re: N900 as bike computer?
 
No it still misses pulses. So I'll try audio. It shouldn't be so much power consuming because it is many times simpler, than decoding audio when playing audio. So it should live longer, than audioplayer with switched on screen.

KiberGus 2010-06-23 13:52

Re: N900 as bike computer?
 
I've tried sound approach. It works well. Python implementation eats about 30% of CPU. I would like to rewrite it in C, python was chosen because I've found good example if reading sound via gstreamer.
Right now I'm going to test it on the street.

KiberGus 2010-06-23 17:17

Re: N900 as bike computer?
 
The script itself and battery usage measurements.
http://kibergus.su/node/45
I hope, that C variant would consume less CPU.

KiberGus 2010-06-26 07:52

Re: N900 as bike computer?
 
I've rewritten it in C
Result is 50% CPU load (25% my application, 25% pulseaudio) while CPU is at 250 Mhz (the lower bound).
Python variant consumes 60% CPU (40% my application and 13% pulseaudio) while CPU is at 500 Mhz.
So reimplementing in C give significant performance advantages.

Now it is time for making GUI.

KiberGus 2010-06-27 21:39

Re: N900 as bike computer?
 
GUI is out. I hadn't opportunity to test it on a bike, but it should work.
http://kibergus.su/node/46

By the way, is anybody interested in it or am I the only idiot, who wants to use $700 phone instead of $20 device?

Benson 2010-06-28 00:58

Re: N900 as bike computer?
 
No, you're not the only one -- I just got some gear in this past week, so I may start experimenting soon.


My setup so far:
  • Phone holder bracket (http://www.dealextreme.com/details.dx/sku.15544)
    Seems to work OK, though I don't know how long it'll last. If it breaks too soon, there's always the B&M, or even something custom.

    (BTW, anyone notice the N810 had audio, charger, and USB all three on one end, begging for homebrew docks, but now that the N900 has only two, they must be on opposite ends?:rolleyes:)
  • Speakers (http://www.dealextreme.com/details.dx/sku.28655)
    Loads of empty space inside, so I'm thinking this will be the hub for all glue circuitry. Not sure about weatherproofness of speakers, though...
  • Battery pack -- for now, an Energizer XP18000, with 5V/1A it's fine now, but the higher voltage outputs are a little oddball and/or weak for when I integrate my lights.
Naturally, important things first, so I took it on a 37-mile cruise yesterday to check out the music-cranking (top priority) and physical reliability (xecond priority); building the speedo rig comes later. ;)


So I gotta wire up a permanent power setup, with a tap from the speaker to the N900, and a 4-pole cable from the N900 to the speakers, then run the reed switch down to the wheel. May not happen until next weekend, but I am getting there...


FWIW, I'm not especially interested in the speed, as I find the GPS speed reading good enough. What I want is reliable odometry, that doesn't add up random GPS drift/jitter while I'm parked, doesn't skip or reset when I lose GPS in a tunnel, etc. A less-ticklish speed readout is cool, but not enough to get me excited -- I think that may be why you're not seeing more interest.

As for the addons you mention, a couple thoughts:

Slope detection with accelerometer -- maybe the roads around here are just horrible, and it would be fine where you are, but I can't see this working well at all. IMO, though, integration of GPS would be great -- plot altitude every 20m or so, plot altitude/slope history from that. (GPSjinni does similar using GPS only, but it does speed vs. time and altitude vs. time -- I want x vs. distance.)

Anyway, I'm sure I'll have more thoughts, and maybe a few patches, once my hardware comes together. Still hoping for some OTG/webcam goodness -- I'd kill to see your speedo display overlaid on a live rearview cam!

lubabula 2010-07-08 17:41

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 731951)
GUI is out. I hadn't opportunity to test it on a bike, but it should work.
http://kibergus.su/node/46

Any news? .

KiberGus 2010-07-10 09:31

Re: N900 as bike computer?
 
Quote:

Originally Posted by lubabula (Post 745128)
Any news? .

I had some other things to do. So no visible progress yet. only ideas how interface should look like (I want to have ability to easily add and delete distance/speed counters on the go), what classes do I have to write and what QT classes are needed to implement this. No code yet.
P.S. But I've rebuilt it for QT 4.7 which is now in repositories.

Flandry 2010-07-10 14:10

Re: N900 as bike computer?
 
My use case is the same as Benson's, but I haven't got my hardware set up yet.

Quote:

Originally Posted by KiberGus (Post 747007)
I had some other things to do. So no visible progress yet. only ideas how interface should look like (I want to have ability to easily add and delete distance/speed counters on the go), what classes do I have to write and what QT classes are needed to implement this. No code yet.
P.S. But I've rebuilt it for QT 4.7 which is now in repositories.

Please don't make whatever ends up in the repos depend on 4.7. Who knows when it will be stable+officially supported on N900.:rolleyes:

KiberGus 2010-07-10 17:50

Re: N900 as bike computer?
 
Quote:

Originally Posted by Flandry (Post 747235)
Please don't make whatever ends up in the repos depend on 4.7. Who knows when it will be stable+officially supported on N900.:rolleyes:

4.6 was removed from extras-devel and not supported any more. 4.7 is now in extras-devel. I already use QML which is present only in 4.7. But you shouldn't worry, 4.7 does not conflict with current stable version and can be installed simultaneously.

Actually, one of the reasons for writing this application was to take a look at QML.

taril 2010-07-10 17:53

Re: N900 as bike computer?
 
I use eCoach application for cycling, running, walking etc...

http://maemo.org/downloads/product/Maemo5/ecoach/

Flandry 2010-07-10 18:31

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 747412)
4.6 was removed from extras-devel and not supported any more..

What? That doesn't make any kind of sense at all. 4.6 is the base Qt lib version now on the device. How could it even be possible for it to not be available?

Anyway you're obviously free to do with it as you want. Actually, the navit gui developer is doing the same thing with QML, but the dependence on 4.7 of his packages is a hindrance to that app's adoption by end users.

WhiteWolf 2010-07-10 19:00

Re: N900 as bike computer?
 
To me the idea of this program I like.

Within six months, when I recover from the accident, I would like to have to try.

KiberGus 2010-07-10 19:05

Re: N900 as bike computer?
 
Quote:

Originally Posted by Flandry (Post 747461)
What? That doesn't make any kind of sense at all. 4.6 is the base Qt lib version now on the device. How could it even be possible for it to not be available?

Anyway you're obviously free to do with it as you want. Actually, the navit gui developer is doing the same thing with QML, but the dependence on 4.7 of his packages is a hindrance to that app's adoption by end users.

QT declarative part of 4.6 was removed:
http://maemo.org/packages/view/libqt...5-declarative/

KiberGus 2010-07-13 10:43

Re: N900 as bike computer?
 
New version. Most changes are for future development and UI for them is not implemented yet. I would like to discuss how user interface should look like. Would such UI be confortable for you?
http://kibergus.su/node/51

Flandry 2010-07-13 12:51

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 750136)
New version. Most changes are for future development and UI for them is not implemented yet. I would like to discuss how user interface should look like. Would such UI be confortable for you?
http://kibergus.su/node/51

That looks really nice. Two things that come to mind: what about an option to automatically stop timers and average speed measures when the bike is motionless (you mentioned manually doing that); a way to label the counters and have them logged would be useful. I guess that would require keyboard or virtual keyboard use though.

I'm trying to decide what mount to get for my bike. Anyone who has a mount that works with their N900, please share your experience.

KiberGus 2010-07-13 17:11

Re: N900 as bike computer?
 
Quote:

Originally Posted by Flandry (Post 750282)
That looks really nice. Two things that come to mind: what about an option to automatically stop timers and average speed measures when the bike is motionless (you mentioned manually doing that);

Yes, this si a good idea.
Quote:

Originally Posted by Flandry (Post 750282)
a way to label the counters and have them logged would be useful. I guess that would require keyboard or virtual keyboard use though.

Logging of counters is not needed. I'll log time, when reed is locked. From this information everything else can be restored. But may be I'll change my mind when I'll make logging.
Labeling of counters can be useful, but not for the first version.

P.S. Todays trip showed that there is an error in current version which makes speed about 10 times smaller. I need to check coefficients again.

Benson 2010-07-13 22:13

Re: N900 as bike computer?
 
@KiberGus: Looks quite good to me, I'll see what I think when I start riding with it...

Quote:

Originally Posted by Flandry (Post 750282)
I'm trying to decide what mount to get for my bike. Anyone who has a mount that works with their N900, please share your experience.

As mentioned above, I got http://www.dealextreme.com/details.dx/sku.15544 -- I can't recommend it. It can be adjusted to not press any of the buttons, and to allow easy enough access to the volume rocker, though it makes the others awkward to press; all in all, it worked rather well for a week and a half, then the ratchet breaks. :( (I'm not really mad, because I knew it was junk when I bought it -- I was just hoping it would be more like 3 months life.)

So now I'm using a custom plastic holder, basically just a pocket the size and shape of an N900 w/extended back milled in a block of plastic; it's not finished yet, but it'll soon offer fat-buttons for the volume rocker, power, and shutter buttons, as well as direct access to the USB and AV jacks and the unlock slider. (Doesn't do a thing for the rest of you without access to a machine shop, though. :p)


Since I'm posting, here's my install status, if anyone cares:

I'm now at a standstill as I got caught out in a sudden rainstorm and didn't stop to unmount/cover my N900; now I have a dead digitizer. (The above-mentioned speaker did fairly well, though -- some water in the audio jack messed up contact until I blew it out with compressed air, but when converted with all cables siliconed in, it should be ok for typical rain -- so far I think I can recommend it for anyone considering a full-bore setup like I'm doing.)

So now I'm just waiting on shipping for both the new digitizer and a cheap headset (to snip the TRRS plug and cable from). I picked up a $10 cycle computer to get the magnet and more importantly the reed switch, already in a waterproof housing w/ mounting bracket and cable.

*hates slow shipping from China* :mad:

Flandry 2010-07-13 22:36

Re: N900 as bike computer?
 
Quote:

Originally Posted by KiberGus (Post 750564)
P.S. Todays trip showed that there is an error in current version which makes speed about 10 times smaller. I need to check coefficients again.

Is it possible you're not as fast as you thought you were? :p

Quote:

Originally Posted by Benson (Post 750873)
As mentioned above, I got http://www.dealextreme.com/details.dx/sku.15544 -- I can't recommend it. It can be adjusted to not press any of the buttons, and to allow easy enough access to the volume rocker, though it makes the others awkward to press; all in all, it worked rather well for a week and a half, then the ratchet breaks. :( (I'm not really mad, because I knew it was junk when I bought it -- I was just hoping it would be more like 3 months life.)

Confession: i already have that monstrosity. I bought it about 9 months ago knowing i was going to use whatever next-PDA-gadget i got as a bike nav/computer. I haven't been brave enough to put something as heavy and expensive as the N900 in it, though.

If the dang thing had a standard camera mount it would really solve a lot of problems. :/

Quote:

So now I'm just waiting on shipping for both the new digitizer and a cheap headset (to snip the TRRS plug and cable from). I picked up a $10 cycle computer to get the magnet and more importantly the reed switch, already in a waterproof housing w/ mounting bracket and cable.

*hates slow shipping from China* :mad:
Not a bad idea for the parts. I'll be interested to read how the franken-sensor setup works for you.

ZogG 2010-07-13 23:37

Re: N900 as bike computer?
 
is it in extra-testing repos or ti's only on your website, if so, you should up to maemo's repos. спасибо =)

KiberGus 2010-07-14 07:14

Re: N900 as bike computer?
 
Quote:

Originally Posted by ZogG (Post 750948)
is it in extra-testing repos or ti's only on your website, if so, you should up to maemo's repos. спасибо =)

It's not ready for uploading in-to repos yet. When bare minimum of functionality (correct measurements, counter serialization, counter addition and removal) would be available I'll upload it in extras-devel.

lubabula 2010-07-14 15:31

Re: N900 as bike computer?
 
I cant make it work so ill just wait until its in etras-testing. When I try to lauch it i get:
Nokia-N900-02-8:/home/user# ./bike
Unsupported date format character at 1 (%-d.%-m.)
./bike: symbol lookup error: ./bike: undefined symbol: _ZN7QmlViewC1EP7QWidget

Anyway. What I wish there should be:
Total kilometers and also Trip kilometers. Also some way to reset total. So you could reset it once a year or so.

And is it possible so you could and another mode. Like another Total kilometers so you could have 2 different excrcises. cycle and running.

That app looks excellent and Im really waiting for it.

I think this could actually be good running/cycling carrying case for n900. Its n900 compatibility.
http://europe.nokia.com/find-product...ng-case-cp-402

zombiepig 2010-07-29 02:36

Re: N900 as bike computer?
 
I thought I'd share my experiences with making a bike mount for my n900.

I started off with this monstrosity from ebay:
http://cgi.ebay.com.au/ws/eBayISAPI....m=120473810311
I'd never trust my phone in that, but wanted the clamp/tilting part of it.

Next up was this one:
http://cgi.ebay.com.au/ws/eBayISAPI....m=150448766031
It's actually black, not that brown color in their photographs, and holds the n900 snuggly.

Here's my starting point:
http://img411.imageshack.us/img411/7356/20100729001.jpg

Next I dismantled both bits to get just the bike mount and n900 holder:
http://img24.imageshack.us/img24/8932/20100729002.jpg

I was originally hoping these two parts would have the same size mounting clamps (it looked like it was possible in the ebay photos), but no such luck. So I did a bit of a hack job removing some of the clips and widening the holes in the other part:
http://img529.imageshack.us/img529/994/20100729003.jpg

Then these two bits were clipped together and a whole stack of glue used for more strength:
http://img707.imageshack.us/img707/7053/20100729004.jpg

I deliberately attached the mount off-center so the phone will sit more-or-less in the middle of the handlebars. Here's what it looks like attached to my bike:
http://img828.imageshack.us/img828/1876/20100729005.jpg

And finally with my n900 in place:
http://img201.imageshack.us/img201/1470/dsc0742b.jpg

Now I've just got to wait for a sunny day to give it a real test! :)


All times are GMT. The time now is 06:19.

vBulletin® Version 3.8.8