Author Topic: Spyro gots a pickit 2 starter kit  (Read 12427 times)

0 Members and 1 Guest are viewing this topic.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Spyro gots a pickit 2 starter kit
« on: January 25, 2012, 06:31:09 pm »
I has gots a PIC18F4XK20 Starter Kit board!
This is a dev board-like device powered by a PIC processor. It has 4 buttons, 2 pots, audio in and out, 8 LEDs, and an OLED 128x64 screen that you can interface with. I'm hopefully gonna start programming it soon. Here's a pic:

It also came with the PICkit 2 Programmer device (that's also the power supply).
The cord that came with it to connect to the computer is bright red. Mom says she likes the bright red cord best, even more than the board itself. *.*

Pictures of it running programs coming soon (as soon as the IDE finishes downloading x.x man my internet is slow).
« Last Edit: January 25, 2012, 06:31:34 pm by Spyro543 »

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Spyro gots a pickit 2 starter kit
« Reply #1 on: January 25, 2012, 06:59:53 pm »
...
Mom says she likes the bright red cord best, even more than the board itself. *.*
...

XD I can't really see what she would like about the board itself.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline imo_inx

  • Manman, SaviourOfTheMultiverse!
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 473
  • Rating: +27/-8
  • imo_inx
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #2 on: January 25, 2012, 07:06:54 pm »
 ;D I need one of those.


Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Spyro gots a pickit 2 starter kit
« Reply #3 on: January 25, 2012, 07:11:52 pm »
That looks pretty nice. I should get one. Where do you get that?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #4 on: January 25, 2012, 07:51:45 pm »
I want one. How much are they?
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline runeazn

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 191
  • Rating: +5/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #5 on: January 25, 2012, 08:27:07 pm »

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Spyro gots a pickit 2 starter kit
« Reply #6 on: January 26, 2012, 02:01:12 am »
i like it that there's already a screen built-on, because correct screens are sometimes hard to find, good luck with it!

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #8 on: January 28, 2012, 12:56:56 pm »
Ok guys, I am in need of some help. I got the correct compiler required for this board, and I tried to build a simple program that would turn on an LED on the board. Here is the code, checked and double-checked with the documentation:
Code: [Select]
#pragma config FOSC = INTIO67
#pragma config WDTEN = OFF, LVP = OFF

#include "p18f46K20.h"

void main(void)
{
TRISD = 0b01111111;
LATDbits.LATD7 = 1;
while (1)
;
}
I click Build All, and I get this error:
Error - could not find definition of symbol 'TRISD' in file './led1.o'.

TRISD is a variable that is defined in p18f46K20.h. For some reason, it says that it's not defined.
Here's the line in the header file:
Code: [Select]
extern volatile near unsigned char TRISD;I have no idea what's happening here. Can anyone here help?

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #9 on: January 29, 2012, 08:55:36 am »
I have that problem solved (by including the library file for this board) but now i have another problem. For some reason, the LED o the board is not lighting up. I did everything needed, programmed the board and released it from reset...but the LED is just not coming on!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Spyro gots a pickit 2 starter kit
« Reply #10 on: January 29, 2012, 01:54:20 pm »
I hope that it's not broken. Do you have a way to get a refund or something if that's the case? From what you were saying on IRC it seemed scary x.x

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Spyro gots a pickit 2 starter kit
« Reply #11 on: January 29, 2012, 02:18:46 pm »
don't you have to initialize the led at the beginning of the program to have it working?

maybe try some fully official program that uses the led, if there are such programs, to make sure it's or your code or your board

maybe run the program and measure the voltage or current over the led, if there is nothing somethings wrong, if there is and your led does not work, just place a new led if that's possible
« Last Edit: January 29, 2012, 02:19:48 pm by Nick »

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #12 on: January 29, 2012, 03:45:46 pm »
I got it working!
Here's a vid:

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Spyro gots a pickit 2 starter kit
« Reply #13 on: January 29, 2012, 03:48:54 pm »
nice :)

maybe you could make the pads wider and thinner, to learn about the sprite handling and coding and such..
really nice to see it working

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #14 on: February 01, 2012, 08:01:31 am »
Ok, now that I learned how to interface with the buttons, screen, and LEDs, it's time to make an operating system! I'm currently working on one I call Anova OS (it's all text based graphics, sorry, I don't know how to do graphics yet). So far I have gotten the title screen finished! Pics coming soon.

EDIT: 666 posts D:
« Last Edit: February 01, 2012, 08:02:04 am by Spyro543 »