Author Topic: electronic project  (Read 16243 times)

0 Members and 1 Guest are viewing this topic.

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: electronic project
« Reply #15 on: January 29, 2012, 03:04:39 pm »
there are commands to send/recieve strings (through serial RS232) on both the picaxe and ndless ;) so it should be fine.
« Last Edit: January 29, 2012, 03:05:17 pm by renatose »

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: electronic project
« Reply #16 on: January 29, 2012, 03:06:19 pm »
i don't think it's that easy, isn't the nspire sending in a specified format, like ith a code to validate if it's a true nspire and so on?

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: electronic project
« Reply #17 on: January 29, 2012, 03:06:58 pm »
not in an ndless prog or a lua one. Ifyou're going over RS232 that's the dock connector, and it's only used by the OS in startup stuff.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: electronic project
« Reply #18 on: January 29, 2012, 03:09:37 pm »
so you mean it can just send and receive from anything via the usb?

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: electronic project
« Reply #19 on: January 29, 2012, 03:23:33 pm »
no, by the RS232. That's on the dock connector (not the USB)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: electronic project
« Reply #20 on: January 29, 2012, 03:26:22 pm »
oh, nice.. so you can then receive single bytes? one should use the ports on this page: http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports isn't it?

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: electronic project
« Reply #21 on: January 29, 2012, 03:46:06 pm »
You could left the rc system on your car and make a controller on your calc, for example 2nd to stop/'launch' car and left/right to drive it...
You just need a part of a calc cable, and maybe a one-bit memory (2 NOR logic circuits for example), and leds if you want.
I can make you program if you want (already done ...).
____________

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: electronic project
« Reply #22 on: January 29, 2012, 03:49:31 pm »
I'm not sure if it can be done with single bytes since I don't know exactly how the RS232 protocol works, but I'm sure it won't be that hard to accomplish some communication between both and to exchange strings of data.

To start I'll want to show data read from the temperature sensor on the calculator screen.

These are the topics in question on the nspire side:
http://hackspire.unsads.com/wiki/index.php/Hardware#RS232
http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports#90020000_-_Serial_UART

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: electronic project
« Reply #23 on: January 29, 2012, 03:53:02 pm »
You could left the rc system on your car and make a controller on your calc, for example 2nd to stop/'launch' car and left/right to drive it...
You just need a part of a calc cable, and maybe a one-bit memory (2 NOR logic circuits for example), and leds if you want.
I can make you program if you want (already done ...).

i thought of that too, but i din't know how to check the bytes in an analog way. in fact, that was my first thought xp
so, how do you do that? well, it would be great to see the program, but i would first like to understand how the splitting works :)

@ renatose, it has Rx and Tx, so TTL should work Ö
that's not really for sending, but to read from things like temp stuff and so

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: electronic project
« Reply #24 on: January 29, 2012, 04:08:52 pm »
following some search that I've just done it looks that rs232 is the protocol and ttl a standard and in fact we will be using both here: http://answers.yahoo.com/question/index?qid=20090211134205AApzAvY

following this we will be using the rs232 protocol with the ttl voltage levels.
and it looks very common to be like this...

EDIT: Aborting this idea since the baud rate of the nspire is 115200 it's too high to a picaxe microcontroller. I don't know if the nspire's baud rate can be lowered or it the arduino supports such a high baud rate.
Anyone here knows?
« Last Edit: January 29, 2012, 04:42:11 pm by renatose »

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: electronic project
« Reply #25 on: January 29, 2012, 05:34:15 pm »
115200 is possible with the arduino :) i don't know anything about it, but this comes fro the site:
Quote from: arduino.cc
An ATmega328 running at 16 MHz with auto-reset, using the optiboot bootloader (115200 baud, 0.5 KB)

so that shouldn't be a problem

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: electronic project
« Reply #26 on: January 29, 2012, 06:28:17 pm »
yeap :D when I got an arduino I'll start doing that, in the meanwhile I've got much more to do :P

But me/we could start doing the nspire part as it's always possible to test with a computer linked to the nspire at 115200 baud.
It shouldn't be that difficult and is a starting idea... It's always good to have an objective when learning a new language.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: electronic project
« Reply #27 on: January 30, 2012, 05:10:39 am »
that about the objective is true, but i really think it's too complicated for me xs

i think i'm going to buy this set:
  • €24 arduino
  • €20 starter set (wires, breadboard, components etc)
  • €17 robot platform
  • €14 motor shield
  • €3,5 battery box (to power arduino)

this is the robot platform:


it might be stupid to already buy the robot platform, but i'm sure i'll buy it later, and if i don't buy it now i have to pay €10 shipping costs and another €10 when buying the platform, so i thought to buy it together :) saves me €20..
« Last Edit: January 30, 2012, 05:39:41 am by Nick »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: electronic project
« Reply #28 on: January 30, 2012, 12:37:40 pm »
You won't learn anything about electronics with that thing. Buy a small prototyping board and some components and start experimenting. That's how I learned it :)
If you like my work: why not give me an internet?








Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: electronic project
« Reply #29 on: January 30, 2012, 01:07:06 pm »
it probably would work for something right away to get an idea about some of the arduino stuff
« Last Edit: January 30, 2012, 01:07:32 pm by jwalker »
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads