Commit Graph

65 Commits

Author SHA1 Message Date
Rihards Skuja
4ea41527f1
Use base staion LED to show found obstacles
Transmit 'true' from robot to base station if robot sonar distance is
below a set threshold and then turn on ('true' received) or off ('false' received)
base station's signal LED.
2018-01-20 18:47:50 +02:00
Rihards Skuja
92c3842ca9
Restore accidentally deleted code in 4e61155 2018-01-19 20:06:26 +02:00
Rihards Skuja
6c94180d77
Ignore build files and objects 2018-01-19 18:19:24 +02:00
Rihards Skuja
4e6115560c
Add initial code for the base station 2018-01-19 18:13:16 +02:00
Rihards Skuja
a897a71eac
Simplify sonar usage 2018-01-17 23:14:16 +02:00
Rihards Skuja
a23fa2ca9f
Add missing parantheses 2018-01-17 21:53:50 +02:00
Rihards Skuja
f1981eb27b
Don't verify written data and be more verbose (avrdude) 2018-01-17 17:54:59 +02:00
Rihards Skuja
2d74be29e9
Use external 16MHz crystal 2018-01-17 17:54:17 +02:00
Rihards Skuja
a48b71620f
Port naming, turn on both LEDs on startup 2018-01-09 20:17:50 +02:00
Rihards Skuja
4a4d6e19de
Fix debug port names for PWM 2018-01-09 20:16:51 +02:00
Rihards Skuja
60aedbc945
Move sonar init function to main 2018-01-04 14:20:41 +02:00
Rihards Skuja
98e9ccf3dd
Update nrf24 pins 2018-01-03 20:27:35 +02:00
Rihards Skuja
4f2b6d242a
Fine-tune data types, optimize while loops 2018-01-02 19:32:11 +02:00
Rihards Skuja
b74f68994d
Improve bit manipulation macros 2018-01-02 19:14:50 +02:00
Rihards Skuja
c21e086460
More warnings for debug builds 2018-01-02 19:14:30 +02:00
Rihards Skuja
404df4289d
Clean up unused macros 2018-01-02 18:18:46 +02:00
Rihards Skuja
8104fbbad0
Fix return value signedness 2018-01-02 14:46:33 +02:00
Rihards Skuja
9d0bb921b3
Don't show warnings for release builds 2018-01-02 14:33:15 +02:00
Rihards Skuja
446f85b05a
Merge branch 'master' into radio 2018-01-02 14:31:14 +02:00
Rihards Skuja
78a8b62142
Fix wrong header name in main.c 2018-01-02 14:22:26 +02:00
Rihards Skuja
e6ec28b04c
Use predefined bit manipulation macros 2018-01-02 14:18:30 +02:00
Rihards Skuja
b7458e4bd3
Rename temperature headers/sources 2018-01-02 14:10:10 +02:00
Rihards Skuja
f04723704e
Split LED functionality in seperate headers/sources 2018-01-02 14:08:13 +02:00
Rihards Skuja
3fc7ad4c8d
Split servo functionality in seperate headers/sources 2018-01-02 14:02:42 +02:00
Rihards Skuja
3dcbbfe205
Read distance from HC-SR04 ultrasonic sensor 2018-01-02 13:46:54 +02:00
Rihards Skuja
7e2007a0ba
Split common macros in seperate header 2018-01-02 13:46:11 +02:00
Rihards Skuja
e96258cdb8
Use OCR0x to generate PWM for servo motors 2017-12-30 22:49:18 +02:00
Rihards Skuja
ddf696e1da
New pin definitions 2017-12-30 22:48:10 +02:00
Rihards Skuja
153bf288b8
Add nrf24L01+ library 2017-12-18 21:00:04 +02:00
Rihards Skuja
40b00749e1
Merge branch 'master' into radio 2017-12-18 19:47:18 +02:00
Rihards Skuja
58ef339d71
Set correct port for LED 2017-12-18 19:46:10 +02:00
Rihards Skuja
fcf6b9564d
Merge branch 'master' into radio 2017-11-28 15:40:06 +02:00
Rihards Skuja
02efb232ab
Merge pull request #7 from rhssk/photo
Read ADC values, uniform function naming
2017-11-28 15:38:46 +02:00
Rihards Skuja
604a47ffbd
Read ADC values, uniform function naming 2017-11-28 15:25:12 +02:00
Rihards Skuja
0e6fe01609
Merge pull request #6 from rhssk/servos
Use TC1 to drive an additional servo motor
2017-11-25 11:41:05 +00:00
Rihards Skuja
a470de0d79
Use TC1 to drive an additional servo motor 2017-11-25 13:37:16 +02:00
Rihards Skuja
af6219730b
Merge branch 'master' into radio 2017-11-25 11:27:49 +02:00
Rihards Skuja
6f334b21b3
Merge pull request #5 from rhssk/high_low_macros
Additional macros for pin value manipulation
2017-11-25 09:26:36 +00:00
Rihards Skuja
850346e8cb
Additional macros for pin value manipulation 2017-11-25 11:23:47 +02:00
Rihards Skuja
18f7655462
Merge branch 'master' into radio 2017-11-24 23:04:51 +02:00
Rihards Skuja
9f7ae5420d
Merge branch 'master' into radio 2017-11-24 23:03:13 +02:00
Rihards Skuja
be9cedee7d
Merge pull request #4 from rhssk/high_low_macros
Introduce macros for setting pin to low or high
2017-11-24 20:59:43 +00:00
Rihards Skuja
cef7bb0def
Introduce macros for setting pin to low or high 2017-11-24 22:58:52 +02:00
Rihards Skuja
6b1b5dcf93
Merge pull request #3 from rhssk/servos
Control left servo motor with PWM
2017-11-24 20:18:07 +00:00
Rihards Skuja
2bd66fda7d
Control left servo motor with PWM 2017-11-24 22:14:50 +02:00
Rihards Skuja
f2a266024d
Merge pull request #2 from rhssk/debug
Add debugging support with simavr
2017-11-24 15:28:23 +00:00
Rihards Skuja
b014926833
Add debugging support with simavr 2017-11-24 17:24:12 +02:00
Rihards Skuja
7a9eb33c51
Clean up unused typedefs 2017-11-24 14:01:11 +02:00
Rihards Skuja
4d3820a8ac
Add URL to radio library as a possible option in future 2017-11-24 13:46:22 +02:00
Rihards Skuja
4355f8aa77
Clean up leftover files from refactoring 2017-11-24 13:42:08 +02:00